diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-12-31 17:42:38 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-12-31 17:42:57 +0100 |
commit | 7adb5c2aca8047ae184a96869e3cfcb034fbac39 (patch) | |
tree | 82ad9a31355cec5c05ecb674e9120b0f637ceb4a /llvm/lib | |
parent | fcbf05bbdccc8a32f6a80316ea1c13be7e7eeae2 (diff) | |
download | llvm-7adb5c2aca8047ae184a96869e3cfcb034fbac39.zip llvm-7adb5c2aca8047ae184a96869e3cfcb034fbac39.tar.gz llvm-7adb5c2aca8047ae184a96869e3cfcb034fbac39.tar.bz2 |
Revert "[InstCombine] Fix infinite loop due to bitcast <-> phi transforms"
This reverts commit 27a0795943fee0f30b995fe5165428afc2dfd402.
Seems to break test-suite.
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp index 446e675..3ba56bb 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp @@ -2370,12 +2370,6 @@ Instruction *InstCombiner::optimizeBitCastFromPhi(CastInst &CI, PHINode *PN) { llvm_unreachable("all uses should be handled"); } } - - // At this point the old phi has either no users, or is only used - // in other old phis. Replace with undef to break circles and remove - // the instruction. - replaceInstUsesWith(*OldPN, UndefValue::get(OldPN->getType())); - eraseInstFromFunction(*OldPN); } return RetVal; |