llvm-project/llvm/lib/Transforms
Nikita Popov a5ee62a141 [IndVars] Call replaceLoopPHINodesWithPreheaderValues() for already constant exits
Currently we only call replaceLoopPHINodesWithPreheaderValues() if
optimizeLoopExits() replaces the exit with an unconditional exit.
However, it is very common that this already happens as part of
eliminateIVComparison(), in which case we're leaving behind the
dead header phi.

Tweak the early bailout for already-constant exits to also call
replaceLoopPHINodesWithPreheaderValues().

Differential Revision: https://reviews.llvm.org/D129214
2022-07-13 09:43:21 +02:00
..
AggressiveInstCombine [AggressiveInstcombine] Conditionally fold saturated fptosi to llvm.fptosi.sat 2022-06-10 09:36:09 +01:00
CFGuard [CFG] Handle calls with funclet bundle 2021-12-03 10:51:10 -08:00
Coroutines [NFC] [Coroutines] Update the comments for lowering coro.save 2022-07-07 14:57:41 +08:00
Hello
IPO [Attributor] Don't crash if getAnalysisResultForFunction() returns null LoopInfo 2022-07-12 16:44:06 -04:00
InstCombine [InstCombine] Avoid ConstantExpr::get() in vector binop fold (NFCI) 2022-07-08 17:20:14 +02:00
Instrumentation [InstrProf] Mark __llvm_profile_runtime hidden to match libclang_rt.profile definition 2022-07-11 11:29:20 -07:00
ObjCARC Cleanup includes: final pass 2022-03-29 09:00:21 +02:00
Scalar [IndVars] Call replaceLoopPHINodesWithPreheaderValues() for already constant exits 2022-07-13 09:43:21 +02:00
Utils [coroutine] add nomerge function attribute to `llvm.coro.save` 2022-07-12 10:39:38 -07:00
Vectorize [LoopVectorize] Change PredicatedBBsAfterVectorization to be per VF 2022-07-12 14:53:20 +01:00
CMakeLists.txt