[PATCH] D133496: [AArch64] Use tbl for truncating vector FPtoUI conversions.

Tim Northover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 15 02:19:09 PDT 2022


t.p.northover accepted this revision.
t.p.northover added a comment.
This revision is now accepted and ready to land.

One simplification, but otherwise seems OK.



================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:13337
+        FPToUI->getOperand(0),
+        FixedVectorType::get(Builder.getInt32Ty(), SrcTy->getNumElements()));
+    auto *TruncI = Builder.CreateTrunc(WideConv, DstTy);
----------------
`VectorType::getInteger(DstTy)` is slightly simpler.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133496/new/

https://reviews.llvm.org/D133496



More information about the llvm-commits mailing list