mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-12 23:37:33 +00:00
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
This commit is contained in:
parent
6c8648b4c9
commit
c3188ce0f1
@ -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…
x
Reference in New Issue
Block a user