[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:16 PST 2023
================
@@ -177,6 +177,15 @@ void Instruction::setNonNeg(bool b) {
(b * PossiblyNonNegInst::NonNeg);
}
+bool Instruction::hasAllowReassocOfAllOperand() const {
+ return all_of(operands(), [](Value *V) {
+ if (!isa<IntrinsicInst>(V))
----------------
arsenm wrote:
reassoc isn't a property of IntrinsicInst, but FPMathOperator
https://github.com/llvm/llvm-project/pull/71277
More information about the llvm-commits
mailing list