[llvm] [AArch64][SelectionDAG] Improve codegen for insert_into_scalable(zext_fixed_length_vector) (PR #192405)

Ricardo Jesus via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 17 02:04:36 PDT 2026


================
@@ -20942,12 +20942,36 @@ static SDValue performReinterpretCastCombine(SDNode *N) {
   return SDValue();
 }
 
+// and(sext(Op), splat(1)) -> zext(Op)
----------------
rj-jesus wrote:

Why is DCI.isBeforeLegalizeOps() required? Is there a good reason to use it rather than do the direct check on the element type?

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


More information about the llvm-commits mailing list