[PATCH] D99469: GlobalISel: Restrict narrow scalar for fptoui/fptosi results
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 28 08:20:04 PDT 2021
nikic added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:4721
+ if (SrcTy.getScalarType() == LLT::scalar(16) &&
+ DstTy.getScalarSizeInBits() >= (IsSigned ? 17 : 16)) {
+ Observer.changingInstr(MI);
----------------
Shouldn't this check the NarrowTy, rather than the old DstTy?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99469/new/
https://reviews.llvm.org/D99469
More information about the llvm-commits
mailing list