[llvm] [RISCV] Narrow indices of fixed vector gather/scatter nodes (PR #66405)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 15 13:47:27 PDT 2023


================
@@ -11616,15 +11616,44 @@ static SDValue performXORCombine(SDNode *N, SelectionDAG &DAG,
   return combineSelectAndUseCommutative(N, DAG, /*AllOnes*/ false, Subtarget);
 }
 
-// According to the property that indexed load/store instructions
-// zero-extended their indices, \p narrowIndex tries to narrow the type of index
-// operand if it is matched to pattern (shl (zext x to ty), C) and bits(x) + C <
-// bits(ty).
+/// According to the property that indexed load/store instructions zero-extended
----------------
topperc wrote:

zero-extended -> zero extend

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


More information about the llvm-commits mailing list