diff options
author | Hans Wennborg <hans@hanshq.net> | 2015-05-19 23:06:30 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2015-05-19 23:06:30 +0000 |
commit | 2f21b8760e895242e6827a03e4641e0886dbd385 (patch) | |
tree | d549dba43863f39366d7fccc0e9b47029a52d046 /llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp | |
parent | 3de417f40836c6302449ca0eaafbf05a5c863e33 (diff) | |
download | llvm-2f21b8760e895242e6827a03e4641e0886dbd385.zip llvm-2f21b8760e895242e6827a03e4641e0886dbd385.tar.gz llvm-2f21b8760e895242e6827a03e4641e0886dbd385.tar.bz2 |
Revert r237539: "Reapply r237520 with another fix for infinite looping"
This caused PR23583.
llvm-svn: 237739
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp index 80628b2..955776e 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp @@ -13,7 +13,6 @@ //===----------------------------------------------------------------------===// #include "InstCombineInternal.h" -#include "llvm/Analysis/ValueTracking.h" #include "llvm/IR/IntrinsicInst.h" #include "llvm/IR/PatternMatch.h" @@ -407,12 +406,6 @@ Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, break; } case Instruction::Select: - // If this is a select as part of a min/max pattern, don't simplify any - // further in case we break the structure. - Value *LHS, *RHS; - if (matchSelectPattern(I, LHS, RHS) != SPF_UNKNOWN) - return nullptr; - if (SimplifyDemandedBits(I->getOperandUse(2), DemandedMask, RHSKnownZero, RHSKnownOne, Depth + 1) || SimplifyDemandedBits(I->getOperandUse(1), DemandedMask, LHSKnownZero, |