1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/lib/Transforms/Coroutines
Xun Li d7410cd0b4 [Coroutine] Fix a bug where Coroutine incorrectly spills phi and invoke defs before CoroBegin
When a spill definition is before CoroBegin, we cannot spill it to the frame immediately after the definition. We have to spill it after the frame is ready.
The current implementation handles it properly for any other kinds of instructions except for PhINode and InvokeInst, which could also be defined before CoroBegin.
This patch fixes it by moving the CoroBegin dominance check earlier, so that it covers all cases.
Added a test.

Differential Revision: https://reviews.llvm.org/D87810
2020-09-17 08:13:07 -07:00
..
CMakeLists.txt [Transforms][Coroutines] Add missing header path to CMakeLists.txt 2020-09-15 10:37:25 +01:00
CoroCleanup.cpp
CoroEarly.cpp
CoroElide.cpp
CoroFrame.cpp [Coroutine] Fix a bug where Coroutine incorrectly spills phi and invoke defs before CoroBegin 2020-09-17 08:13:07 -07:00
CoroInstr.h [Alignment][NFC] Use proper getter to retrieve alignment from ConstantInt and ConstantSDNode 2020-07-03 08:06:43 +00:00
CoroInternal.h Revert D85812 "[coroutine] should disable inline before calling coro split" 2020-08-24 11:41:05 -07:00
CoroSplit.cpp [Coro][NewPM] Handle llvm.coro.prepare.retcon in NPM coro-split pass 2020-09-16 09:09:10 -07:00
Coroutines.cpp
LLVMBuild.txt