diff options
| author | Mircea Trofin <mtrofin@google.com> | 2025-10-31 16:10:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-31 23:10:59 +0000 |
| commit | 6adef40e756eb427508ae245bfa0fd846573782e (patch) | |
| tree | a0f6e4b1c5ecaa1ae389ce62561bd2be87f2203d /llvm/unittests/Object/ELFObjectFileTest.cpp | |
| parent | 045f3ceb84d982b5ccc39144f26d41674f4059fc (diff) | |
| download | llvm-6adef40e756eb427508ae245bfa0fd846573782e.zip llvm-6adef40e756eb427508ae245bfa0fd846573782e.tar.gz llvm-6adef40e756eb427508ae245bfa0fd846573782e.tar.bz2 | |
[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.
Diffstat (limited to 'llvm/unittests/Object/ELFObjectFileTest.cpp')
0 files changed, 0 insertions, 0 deletions
