[PATCH] D26767: [AMDGPU] Promote f16/i16 conversions to f32/i32 + custom lower f16 = fp_round f64
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 16 18:00:45 PST 2016
arsenm accepted this revision.
arsenm added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lib/Target/AMDGPU/SIISelLowering.cpp:2062-2063
+ SDValue Trunc = DAG.getNode(ISD::TRUNCATE, DL, MVT::i16, FpToFp16);
+ SDValue Bitcast = DAG.getNode(ISD::BITCAST, DL, MVT::f16, Trunc);
+ return Bitcast;
}
----------------
This can be return of the getNode directly
https://reviews.llvm.org/D26767
More information about the llvm-commits
mailing list