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 | ac5c93040f17d2a9cd9825277f72fbc185cfc9d4 (patch) | |
tree | 10b2deea7f86a555b1feb80fc0853475a73520a7 /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | a87c9e4b75deb7c76560111747454e2ad495349b (diff) | |
download | bcm5719-llvm-ac5c93040f17d2a9cd9825277f72fbc185cfc9d4.tar.gz bcm5719-llvm-ac5c93040f17d2a9cd9825277f72fbc185cfc9d4.zip |
Don't branch fold inline asm statements.
llvm-svn: 43191
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index 055302f153a..d523bf585ae 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/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; } |