mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-06 11:19:09 +00:00
Debug info intrinsic does not intefer during tail call optimization.
llvm-svn: 98778
This commit is contained in:
parent
b1d61d9be1
commit
9ad039e65f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user