[llvm] [RISCV] Lower constant build_vectors with few non-sign bits via vsext (PR #65648)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 7 14:08:22 PDT 2023


================
@@ -3456,6 +3456,27 @@ static SDValue lowerBuildVectorOfConstants(SDValue Op, SelectionDAG &DAG,
   if (SDValue Res = lowerBuildVectorViaDominantValues(Op, DAG, Subtarget))
     return Res;
 
+  // IF the number of signbits allows, see if we can lower as a <N x i8>.
----------------
preames wrote:

Nope, fixed.

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


More information about the llvm-commits mailing list