aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ModuloSchedule.cpp
diff options
context:
space:
mode:
authorXun Li <xun@fb.com>2020-09-17 08:12:46 -0700
committerXun Li <xun@fb.com>2020-09-17 08:13:07 -0700
commit5b533d6cdeed21369dee4572b5485b1fd5d5dcf5 (patch)
tree0ea1728ad4c5fa6b136861849a3c1d38e7218158 /llvm/lib/CodeGen/ModuloSchedule.cpp
parenta3c28ccd49391931acd8b3b27dc98d7c606051e0 (diff)
downloadllvm-5b533d6cdeed21369dee4572b5485b1fd5d5dcf5.zip
llvm-5b533d6cdeed21369dee4572b5485b1fd5d5dcf5.tar.gz
llvm-5b533d6cdeed21369dee4572b5485b1fd5d5dcf5.tar.bz2
[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
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions