commit | c3188ce0f1ff2d1b830702a93134905b9719f410 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Wed Mar 17 23:52:37 2010 +0000 |
committer | Devang Patel <dpatel@apple.com> | Wed Mar 17 23:52:37 2010 +0000 |
tree | d9d361db4dcb4e73f182748d6aacd6fa215e169d | |
parent | 6c8648b4c9f3e02b625dd2d32e0315395da88e61 [diff] [blame] |
Debug info intrinsic does not intefer during tail call optimization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98778 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 11293e4..07dc238 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -4282,6 +4282,9 @@ --BBI) { if (&*BBI == I) break; + // Debug info intrinsic does not intefer during tail call optimization. + if (isa<DbgInfoIntrinsic>(BBI)) + continue; if (BBI->mayHaveSideEffects() || BBI->mayReadFromMemory() || !BBI->isSafeToSpeculativelyExecute()) return false;