Debug info intrinsic does not intefer during tail call optimization.

llvm-svn: 98778
This commit is contained in:
Devang Patel 2010-03-17 23:52:37 +00:00
parent b1d61d9be1
commit 9ad039e65f

View File

@ -4282,6 +4282,9 @@ isInTailCallPosition(CallSite CS, Attributes CalleeRetAttr,
--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;