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

Momchil Velikov via llvm-commits llvm-commits at lists.llvm.org
Wed May 22 03:22:34 PDT 2024


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

I pulled the erasing out of `createTblShuffleForZExt` to avoid the situation down below in the `UIToFPInst` case where a `zext` is created and immediately deleted.

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


More information about the llvm-commits mailing list