commit | 0464a1431b79ed2be54413de239347c56ad84bfa | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Tue Feb 10 22:14:17 2009 +0000 |
committer | Devang Patel <dpatel@apple.com> | Tue Feb 10 22:14:17 2009 +0000 |
tree | b83c65b9314a9ba9aeef24f94749375cce3483fd | |
parent | 1d76864df32cd24970e08c5731e1a195c54383ce [diff] [blame] |
Ignore dbg intrinsic while folding unconditional branch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64242 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index d9c4b69..b5d7423 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -1339,7 +1339,8 @@ if (!isa<DbgInfoIntrinsic>(BBI)) break; } - if (isa<PHINode>(BBI) || &*BBI == Term) + + if (isa<PHINode>(BBI) || &*BBI == Term || isa<DbgInfoIntrinsic>(BBI)) return true; return false; }