[llvm] [AArch64] Refactor creation of a shuffle mask for TBL (NFC) (PR #92529)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 02:02:19 PDT 2024


================
@@ -15916,21 +15919,30 @@ bool AArch64TargetLowering::optimizeExtendOrTruncateConversion(
 
       DstTy = TruncDstType;
     }
-
-    return createTblShuffleForZExt(ZExt, DstTy, Subtarget->isLittleEndian());
+    IRBuilder<> Builder(ZExt);
+    Value *Result = createTblShuffleForZExt(
----------------
fhahn wrote:

Personally I'd go with simpler code, rather than avoiding creating a new ZExt which then gets removed, but don;t feel too strongly about it

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


More information about the llvm-commits mailing list