[PATCH] D25198: AMDGPU/SI: Fix LowerParameter() for i16 arguments
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 7 15:54:53 PDT 2016
tstellarAMD added inline comments.
================
Comment at: lib/Target/AMDGPU/SIISelLowering.cpp:587-592
if (MemVT.isFloatingPoint())
- ExtTy = ISD::EXTLOAD;
+ Val = DAG.getNode(ISD::FP_EXTEND, SL, VT, Load);
+ else if (Signed)
+ Val = DAG.getSExtOrTrunc(Load, SL, VT);
+ else
+ Val = DAG.getZExtOrTrunc(Load, SL, VT);
----------------
arsenm wrote:
> When is the trunc case necessary? Since the FP case only needs to handle extend this looks weird to me
Trunc is required when VT is MVT::i16 and MemVT is MVT::i32.
https://reviews.llvm.org/D25198
More information about the llvm-commits
mailing list