diff options
author | Bill Wendling <isanbard@gmail.com> | 2007-10-19 21:09:55 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2007-10-19 21:09:55 +0000 |
commit | 80629c85f1041df41b5158ebb03a4725af6ecd90 (patch) | |
tree | 8205a201289b28b8c61e611af09d640a9979a73b /lib | |
parent | 7f5f6851c386e1f74d35ee708e4654ae1c1038b6 (diff) | |
download | external_llvm-80629c85f1041df41b5158ebb03a4725af6ecd90.zip external_llvm-80629c85f1041df41b5158ebb03a4725af6ecd90.tar.gz external_llvm-80629c85f1041df41b5158ebb03a4725af6ecd90.tar.bz2 |
Don't branch fold inline asm statements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/BranchFolding.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp index 055302f..d523bf5 100644 --- a/lib/CodeGen/BranchFolding.cpp +++ b/lib/CodeGen/BranchFolding.cpp @@ -271,7 +271,8 @@ static unsigned ComputeCommonTailLength(MachineBasicBlock *MBB1, unsigned TailLen = 0; while (I1 != MBB1->begin() && I2 != MBB2->begin()) { --I1; --I2; - if (!I1->isIdenticalTo(I2)) { + if (!I1->isIdenticalTo(I2) || + I1->getOpcode() == TargetInstrInfo::INLINEASM) { ++I1; ++I2; break; } |