summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEkaterina Romanova <katya_romanova@playstation.sony.com>2014-03-26 22:15:28 +0000
committerEkaterina Romanova <katya_romanova@playstation.sony.com>2014-03-26 22:15:28 +0000
commitb9aea9383ae69cbfb38a9288a6a5a46f688966e0 (patch)
treed104c08a4d2c078fdc18b1984f9d4f55a5476694 /llvm/lib
parent14aa891976488f3cd202cf2d386236d6a8855cfa (diff)
downloadbcm5719-llvm-b9aea9383ae69cbfb38a9288a6a5a46f688966e0.tar.gz
bcm5719-llvm-b9aea9383ae69cbfb38a9288a6a5a46f688966e0.zip
This is a fix for PR# 19051. I noticed code gen differences due to code motion when running tests with and without the debug info at O2. The problem is in branch folding. A loop wanted to skip the debug info, but actually it didn't do so.
llvm-svn: 204865
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index fe8baeabc46..bf6d56ceac8 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/lib/CodeGen/BranchFolding.cpp
@@ -1515,7 +1515,7 @@ MachineBasicBlock::iterator findHoistingInsertPosAndDeps(MachineBasicBlock *MBB,
// branch from condition setting instruction.
MachineBasicBlock::iterator PI = Loc;
--PI;
- while (PI != MBB->begin() && Loc->isDebugValue())
+ while (PI != MBB->begin() && PI->isDebugValue())
--PI;
bool IsDef = false;
OpenPOWER on IntegriCloud