[llvm] [InstCombine] Fix the correctness of missing check reassoc attribute (PR #71277)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 21:24:15 PST 2023


================
@@ -177,6 +177,15 @@ void Instruction::setNonNeg(bool b) {
                          (b * PossiblyNonNegInst::NonNeg);
 }
 
+bool Instruction::hasAllowReassocOfAllOperand() const {
----------------
arsenm wrote:

This seems overly broad for what most checks want, which need to consider a specific operand 

https://github.com/llvm/llvm-project/pull/71277


More information about the llvm-commits mailing list