Files
clang-p2996/llvm/lib/Transforms/Utils/UnifyLoopExits.cpp
Johannes Doerfert 992b451f08 [Utils][UnifyLoopExits] Avoid costly updates if nothing changed (#129179)
If the ControlFlowHub did not perform any change to the control flow,
there is no need to repair SSA, update the loop structure, and verify a
bunch of things. This is not completely NFC though, repairSSA introduced
PHI nodes with a single entry that are now missing.

My code went from 400+ seconds to 1 second, since no loop required the
exits to be unified, but there were many "complex" loops.
2025-02-28 10:14:31 -08:00

9.1 KiB