]> granicus.if.org Git - llvm/commit
[Local] Zap blockaddress without users in ConstantFoldTerminator.
authorFlorian Hahn <flo@fhahn.com>
Sat, 20 Jul 2019 12:25:47 +0000 (12:25 +0000)
committerFlorian Hahn <flo@fhahn.com>
Sat, 20 Jul 2019 12:25:47 +0000 (12:25 +0000)
commit6536223a2a9cc3e11b4a66621e4a0e040bae949f
tree605cad0916021f4e250507a01bd1de4292090f2b
parent345261fbe14e30202db9f7bbed5bb164fc768cbd
[Local] Zap blockaddress without users in ConstantFoldTerminator.

If the blockaddress is not destoryed, the destination block will still
be marked as having its address taken, limiting further transformations.

I think there are other places where the dead blockaddress constants are kept
around, I'll look into that as follow up.

Reviewers: craig.topper, brzycki, davide

Reviewed By: brzycki, davide

Differential Revision: https://reviews.llvm.org/D64936

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366633 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/Local.cpp
test/Transforms/SimplifyCFG/dce-cond-after-folding-terminator.ll