[PATCH] D142746: AMDGPU: Fold fneg into bitcast of build_vector
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 10 10:22:57 PDT 2023
rampitec accepted this revision.
rampitec added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp:4176
+
+ SDValue CastHi = DAG.getNode(ISD::BITCAST, SL, MVT::f32, HighBits);
+ SDValue NegHi = DAG.getNode(ISD::FNEG, SL, MVT::f32, CastHi);
----------------
This is really a hack, half of the f64 is not an f32. It's unfortunate we have to do it.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142746/new/
https://reviews.llvm.org/D142746
More information about the llvm-commits
mailing list