We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34c33bb commit 1a7061cCopy full SHA for 1a7061c
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
@@ -3055,14 +3055,6 @@ Instruction *InstCombinerImpl::foldSelectOfBools(SelectInst &SI) {
3055
if (match(CondVal, m_Select(m_Value(A), m_Value(B), m_Zero())) &&
3056
match(TrueVal, m_Specific(B)) && match(FalseVal, m_Zero()))
3057
return replaceOperand(SI, 0, A);
3058
- // select a, (select ~a, true, b), false -> select a, b, false
3059
- if (match(TrueVal, m_c_LogicalOr(m_Not(m_Specific(CondVal)), m_Value(B))) &&
3060
- match(FalseVal, m_Zero()))
3061
- return replaceOperand(SI, 1, B);
3062
- // select a, true, (select ~a, b, false) -> select a, true, b
3063
- if (match(FalseVal, m_c_LogicalAnd(m_Not(m_Specific(CondVal)), m_Value(B))) &&
3064
- match(TrueVal, m_One()))
3065
- return replaceOperand(SI, 2, B);
3066
3067
// ~(A & B) & (A | B) --> A ^ B
3068
if (match(&SI, m_c_LogicalAnd(m_Not(m_LogicalAnd(m_Value(A), m_Value(B))),
0 commit comments