From fa8c2ae76f7e4f498d29e2716233bd29025e8827 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 13 May 2020 17:51:45 -0700 Subject: [PATCH] [X86] Return true from trySADReplacement in the partial reduction pass when a change is made. Otherwise we don't signal to the pass manager that we changed IR. --- llvm/lib/Target/X86/X86PartialReduction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86PartialReduction.cpp b/llvm/lib/Target/X86/X86PartialReduction.cpp index 3cc4d26..5cc9281 100644 --- a/llvm/lib/Target/X86/X86PartialReduction.cpp +++ b/llvm/lib/Target/X86/X86PartialReduction.cpp @@ -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) { -- 2.7.4