diff options
author | Ekaterina Romanova <katya_romanova@playstation.sony.com> | 2014-03-26 22:15:28 +0000 |
---|---|---|
committer | Ekaterina Romanova <katya_romanova@playstation.sony.com> | 2014-03-26 22:15:28 +0000 |
commit | 899a605fc19df8f6b80f2e5e55512d04aee10c5a (patch) | |
tree | 78c6dcfbe3a54a976a44fb404b3caadb5fcbe7ec /lib/CodeGen/BranchFolding.cpp | |
parent | 3d7d0bc71a858bdd251a84f7a58a379894afe118 (diff) | |
download | llvm-899a605fc19df8f6b80f2e5e55512d04aee10c5a.tar.gz llvm-899a605fc19df8f6b80f2e5e55512d04aee10c5a.tar.bz2 llvm-899a605fc19df8f6b80f2e5e55512d04aee10c5a.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204865 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | lib/CodeGen/BranchFolding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp index fe8baeabc4..bf6d56ceac 100644 --- a/lib/CodeGen/BranchFolding.cpp +++ b/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; |