llvm-project
dff735a7 - [Coroutines] Rebase ptrtoint/ptrtoaddr of frame allocas created before coro.begin (#240036)

Commit
22 days ago
[Coroutines] Rebase ptrtoint/ptrtoaddr of frame allocas created before coro.begin (#240036) insertSpills recreates GEP, bitcast, phi and select aliases of a frame alloca that are created before coro.begin, but not ptrtoint/ptrtoaddr, so those keep the address of the dead stack slot. LoopIdiomRecognize can introduce such a ptrtoint through SCEVExpander when it forms a memcpy, which then gets a bogus length in the ramp. Treat these casts as aliases and recreate them from the frame. Assisted-by: Claude Opus 5.5
Author
Parents
Loading