summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-10-19 21:09:55 +0000
committerBill Wendling <isanbard@gmail.com>2007-10-19 21:09:55 +0000
commitac5c93040f17d2a9cd9825277f72fbc185cfc9d4 (patch)
tree10b2deea7f86a555b1feb80fc0853475a73520a7 /llvm/lib/CodeGen/BranchFolding.cpp
parenta87c9e4b75deb7c76560111747454e2ad495349b (diff)
downloadbcm5719-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.cpp3
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;
}
OpenPOWER on IntegriCloud