Skip to content

Commit

Permalink
[X86] Return true from trySADReplacement in the partial reduction pas…
Browse files Browse the repository at this point in the history
…s when a change is made.

Otherwise we don't signal to the pass manager that we changed IR.
  • Loading branch information
topperc committed May 14, 2020
1 parent 6701993 commit fa8c2ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/X86/X86PartialReduction.cpp
Expand Up @@ -405,7 +405,7 @@ bool X86PartialReduction::trySADReplacement(Value *Op, BinaryOperator *Add) {
Add->setHasNoSignedWrap(false);
Add->setHasNoUnsignedWrap(false);

return false;
return true;
}

bool X86PartialReduction::trySADPattern(BinaryOperator *BO) {
Expand Down

0 comments on commit fa8c2ae

Please sign in to comment.