[all-commits] [llvm/llvm-project] 729e18: [NFCI] SimplifyCFGPass: mergeEmptyReturnBlocks(): ...
Roman Lebedev via All-commits
all-commits at lists.llvm.org
Wed May 19 01:33:03 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 729e18cbf498fb9b95fd672691ee8c7b7926f674
https://github.com/llvm/llvm-project/commit/729e18cbf498fb9b95fd672691ee8c7b7926f674
Author: Roman Lebedev <lebedev.ri at gmail.com>
Date: 2021-05-19 (Wed, 19 May 2021)
Changed paths:
M llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
Log Message:
-----------
[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.
More information about the All-commits
mailing list