[llvm] [X86][SelectionDAG] Fix the Gather's base and index by modifying the Scale value (PR #134979)

Rohit Aggarwal via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 20 21:59:49 PDT 2025


================
@@ -12163,9 +12163,6 @@ bool refineUniformBase(SDValue &BasePtr, SDValue &Index, bool IndexIsScaled,
   if (IndexIsScaled)
     return false;
 
-  if (!isNullConstant(BasePtr) && !Index.hasOneUse())
-    return false;
----------------
rohitaggarwal007 wrote:

fixed

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


More information about the llvm-commits mailing list