Mircea Trofin 6adef40e75
[SimplifyCFG] Don't propagate weights to unconditional branches in turnSwitchRangeIntoICmp (#165931)
PR #161000 introduced a bug whereby the IR would become invalid by having an unconditional branch have `!prof`​attached to it. This only became evident in PR #165744, because the IR of `test/Transforms/SimplifyCFG/pr165301.ll`​was simple enough to both (1) introduce the unconditional branch, and (2) survive in that fashion until the end of the pass (simplifycfg) and thus trip the verifier.
2025-10-31 23:10:59 +00:00
..