aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2022-04-25 12:49:07 +0100
committerFlorian Hahn <flo@fhahn.com>2022-04-25 12:49:08 +0100
commit2fee8dd621bb11204451371f7ecbe40bfc71b282 (patch)
tree1467c84e7a3c173149db06a53f02ea927dd36336 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent7ddf39bc1d75e1624dce1374a1eb315843945690 (diff)
downloadllvm-2fee8dd621bb11204451371f7ecbe40bfc71b282.zip
llvm-2fee8dd621bb11204451371f7ecbe40bfc71b282.tar.gz
llvm-2fee8dd621bb11204451371f7ecbe40bfc71b282.tar.bz2
[SimpleLoopUnswitch] Run LICM for nested unswitching tests.
When enabling freeze-loop-unswitch-cond the inserted freeze instruction may block unswitching of parent loops if they get inserted in a block in the parent loop (as the llvm::Loop-based invariance check only checks whether an instruction is in a loop block or not). In the optimization pipeline, LICM is responsible to hoist out loop invariant instructions to enable further unswitching. Also run LICM for nested unswitching tests in preparation for flipping the default of freeze-loop-unswitch-cond. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D124251
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions