[PATCH] D133496: [AArch64] Use tbl for truncating vector FPtoUI conversions.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 15 08:42:28 PDT 2022
fhahn marked an inline comment as done.
fhahn added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:13337
+ FPToUI->getOperand(0),
+ FixedVectorType::get(Builder.getInt32Ty(), SrcTy->getNumElements()));
+ auto *TruncI = Builder.CreateTrunc(WideConv, DstTy);
----------------
t.p.northover wrote:
> `VectorType::getInteger(DstTy)` is slightly simpler.
Thanks, I didn't know about this helpful utility! Updated to use `VectorType::getInteger(SrcTy)`.
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