[llvm] [NaryReassociate] Teach NaryReassociate about UniformityAnalysis (PR #175167)
Pankaj Dwivedi via llvm-commits
llvm-commits at lists.llvm.org
Wed May 6 08:03:41 PDT 2026
================
@@ -482,6 +513,41 @@ Instruction *NaryReassociatePass::tryReassociateBinaryOp(Value *LHS, Value *RHS,
// = (A op RHS) op B or (B op RHS) op A
SCEVUse AExpr = SE->getSCEV(A), BExpr = SE->getSCEV(B);
SCEVUse RHSExpr = SE->getSCEV(RHS);
+
+ // When uniformity analysis is available, prefer reassociations that group
----------------
PankajDwivedi-25 wrote:
Agree.
https://github.com/llvm/llvm-project/pull/175167
More information about the llvm-commits
mailing list