[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


================
@@ -607,176 +781,9 @@ Instruction *InstCombinerImpl::visitFMul(BinaryOperator &I) {
   if (Value *V = SimplifySelectsFeedingBinaryOp(I, Op0, Op1))
     return replaceInstUsesWith(I, V);
 
-  if (I.hasAllowReassoc()) {
----------------
arsenm wrote:

Can you pre-commit moving all of this code to a helper function in an NFC commit? It's hard to see the real diff here 

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


More information about the llvm-commits mailing list