[llvm] [AMDGPU] Fix canonicalization of truncated values. (PR #83054)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 1 03:04:12 PST 2024
================
@@ -26258,6 +26258,24 @@ SDValue DAGCombiner::visitFP_TO_FP16(SDNode *N) {
if (N0->getOpcode() == ISD::FP16_TO_FP)
return N0->getOperand(0);
+ // fold (fp_to_fp16 (freeze (fp16_to_fp (fp_to_fp16 op))))
----------------
jayfoad wrote:
> I'm slightly abusing the lack of freeze optimisations to use freeze as a general optimisation barrier.
That does not sound safe to me.
https://github.com/llvm/llvm-project/pull/83054
More information about the llvm-commits
mailing list