llvm.org GIT mirror llvm / 90db4d6
[InstCombine] For select rule, use positive check of constant int for select operand. NFCI git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298906 91177308-0d34-0410-b5e6-96231b3b80d8 Anna Thomas 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
911911 // FalseVInPred versus TrueVInPred. When we have individual nonzero
912912 // elements in the vector, we will incorrectly fold InC to
913913 // `TrueVInPred`.
914 if (InC && !isa(InC) && !isa(InC->getType()))
914 if (InC && !isa(InC) && isa(InC))
915915 InV = InC->isNullValue() ? FalseVInPred : TrueVInPred;
916916 else
917917 InV = Builder->CreateSelect(PN->getIncomingValue(i),