[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
Thu Apr 17 00:25:12 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:

So the removal of these lines is not required anymore, right?
Let me check

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


More information about the llvm-commits mailing list