[PATCH] D69275: Add constrained int->FP intrinsics
Kevin P. Neal via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 2 06:37:27 PST 2019
kpn marked an inline comment as done.
kpn added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:7349
+ if (N1.getValueType() == VT)
+ return N1; // noop conversion.
+ break;
----------------
craig.topper wrote:
> This only works if N2 is result 1 of N1.
I don't understand. N2 is a constant that is either 0 or 1. What will happen if it is discarded here?
This code was lifted straight out of getNode() somewhere around line 5194. Without it the X86 target dies trying to lower a rounding of f64 to f64. This happens because getStrictFPExtendOrRound() returns a round when input and output are the same size. This mirrors the non-strict getFPExtendOrRound().
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69275/new/
https://reviews.llvm.org/D69275
More information about the llvm-commits
mailing list