aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2025-04-08 08:51:20 +0700
committerGitHub <noreply@github.com>2025-04-08 08:51:20 +0700
commit3a0c95fb506301fdd083b6e5dff0a0c88da4a665 (patch)
treeaba83f4dfad8a41bc618a07503bee3e2bddd5aa9 /clang/lib/CodeGen/CodeGenModule.cpp
parent3f4e4e0a12c523f3d794f015ca7f40bcfc0ed8f5 (diff)
downloadllvm-3a0c95fb506301fdd083b6e5dff0a0c88da4a665.zip
llvm-3a0c95fb506301fdd083b6e5dff0a0c88da4a665.tar.gz
llvm-3a0c95fb506301fdd083b6e5dff0a0c88da4a665.tar.bz2
llvm-reduce: Fix introducing unreachable code in simplify conditionals (#133842)
After replacing the branch condition, this was calling simplifyCFG to perform the cleanups of the branch. This is far too heavy of a hammer. We do not want all of the extra optimizations in simplifyCFG, and this could also leave behind dead code. Instead, minimally fold the terminator and try to delete the newly dead code. This is pretty much a direct copy of what bugpoint does.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions