aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2021-05-19 11:31:53 +0300
committerRoman Lebedev <lebedev.ri@gmail.com>2021-05-19 11:32:24 +0300
commit729e18cbf498fb9b95fd672691ee8c7b7926f674 (patch)
tree3fc639f5ba1b6bf26789cfc936da5c547901ff31 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent9f36306cc9ac6d1d1019831d40865d0d54563379 (diff)
downloadllvm-729e18cbf498fb9b95fd672691ee8c7b7926f674.zip
llvm-729e18cbf498fb9b95fd672691ee8c7b7926f674.tar.gz
llvm-729e18cbf498fb9b95fd672691ee8c7b7926f674.tar.bz2
[NFCI] SimplifyCFGPass: mergeEmptyReturnBlocks(): use DeleteDeadBlocks()
In this case, it does the same thing as the original pattern does. SimplifyCFG has a few lurking miscompilations about deleting blocks that have their address taken, and consistently using DeleteDeadBlocks() instead of a hand-rolled pattern will allow to weed those cases out easierly.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions