aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-12-07 12:21:22 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-12-31 16:17:14 +0100
commit27a0795943fee0f30b995fe5165428afc2dfd402 (patch)
tree078a02a51d3766d64e07039d5cb174ffaa313b04 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentf5b7dd3c9ec041480d28d203f22929f0f0809d6e (diff)
downloadllvm-27a0795943fee0f30b995fe5165428afc2dfd402.zip
llvm-27a0795943fee0f30b995fe5165428afc2dfd402.tar.gz
llvm-27a0795943fee0f30b995fe5165428afc2dfd402.tar.bz2
[InstCombine] Fix infinite loop due to bitcast <-> phi transforms
Fix for https://bugs.llvm.org/show_bug.cgi?id=44245. The optimizeBitCastFromPhi() and FoldPHIArgOpIntoPHI() end up fighting against each other, because optimizeBitCastFromPhi() assumes that bitcasts of loads will get folded. This doesn't happen here, because a dangling phi node prevents the one-use fold in https://github.com/llvm/llvm-project/blob/master/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp#L620-L628 from triggering. This patch fixes the issue by adding manually removing the old phis. Differential Revision: https://reviews.llvm.org/D71164
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions