llvm-project
46357438 - [SCEV] Try to re-use existing LCSSA phis when expanding SCEVAddRecExpr. (#147214)

Commit
79 days ago
[SCEV] Try to re-use existing LCSSA phis when expanding SCEVAddRecExpr. (#147214) If an AddRec is expanded outside a loop with a single exit block, check if any of the (lcssa) phi nodes in the exit block match the AddRec. If that's the case, simply use the existing lcssa phi. This can reduce the number of instruction created for SCEV expansions, mainly for runtime checks generated by the loop vectorizer. Compile-time impact should be mostly neutral https://llvm-compile-time-tracker.com/compare.php?from=48c7a3187f9831304a38df9bdb3b4d5bf6b6b1a2&to=cf9d039a7b0db5d0d912e0e2c01b19c2a653273a&stat=instructions:u PR: https://github.com/llvm/llvm-project/pull/147214
Author
Parents
Loading