aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineDebugify.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-08-10 10:52:33 +0100
committerFlorian Hahn <flo@fhahn.com>2020-08-10 12:41:33 +0100
commit8393b9fd1f36d9273fa0720872e3996495aacc1c (patch)
tree5ecd567a2178a38ecb916f73ded59728e09bb4f8 /llvm/lib/CodeGen/MachineDebugify.cpp
parent54cb552b962097d0e3ef7306b69a3c82cc7fff37 (diff)
downloadllvm-8393b9fd1f36d9273fa0720872e3996495aacc1c.zip
llvm-8393b9fd1f36d9273fa0720872e3996495aacc1c.tar.gz
llvm-8393b9fd1f36d9273fa0720872e3996495aacc1c.tar.bz2
[LoopInterchange] Move instructions from preheader to outer loop header.
Instructions defined in the original inner loop preheader may depend on values defined in the outer loop header, but the inner loop header will become the entry block in the loop nest. Move the instructions from the preheader to the outer loop header, so we do not break dominance. We also have to check for unsafe instructions in the preheader. If there are no unsafe instructions, all instructions should be movable. Currently we move all instructions except the terminator and rely on LICM to hoist out invariant instructions later. Fixes PR45743
Diffstat (limited to 'llvm/lib/CodeGen/MachineDebugify.cpp')
0 files changed, 0 insertions, 0 deletions