[llvm] [RISCV] Combine vXi32 (mul (and (lshr X, 15), 0x10001), 0xffff) -> (bitcast (sra (v2Xi16 (bitcast X)), 15)) (PR #93565)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Tue May 28 09:00:18 PDT 2024


================
@@ -13704,6 +13704,44 @@ static SDValue expandMul(SDNode *N, SelectionDAG &DAG,
   return SDValue();
 }
 
+// Combine vXi32 (mul (and (lshr X, 15), 0x10001), 0xffff) ->
+// (bitcast (sra (v2Xi16 (bitcast X)), 15))
+// Same for other equivalent types with other equivalen6t constants.
----------------
tschuett wrote:

equivalent

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


More information about the llvm-commits mailing list