commit | 60d490cdc7b11e678f35f5b7eb2c9ef354462211 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Thu Apr 07 23:11:25 2011 +0000 |
committer | Devang Patel <dpatel@apple.com> | Thu Apr 07 23:11:25 2011 +0000 |
tree | 02b940a4766bf242b0838bc96f0680f5ae550f0d | |
parent | 3cf3059b119dd995847dc24a08708ef71be43179 [diff] [blame] |
Do not let debug info interfer with branch folding. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129114 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 27f7721..cfc897c 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -1435,6 +1435,12 @@ ++FrontIt; } + // Ignore dbg intrinsics. + while (DbgInfoIntrinsic *DBI = dyn_cast<DbgInfoIntrinsic>(FrontIt)) { + DbgValues.push_back(DBI); + ++FrontIt; + } + // Only a single bonus inst is allowed. if (&*FrontIt != Cond) return false;