If a source of rcp instruction is a result of any conversion from
an integer convert it into rcp_iflag instruction. No FP exception
can ever happen except division by zero if a single precision rcp
argument is a representation of an integral number.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/AMDGPU/SIISelLowering.cpp | ||
---|---|---|
6644 ↗ | (On Diff #152775) | Oh, I see there is constant folding there already. It would probably be better then to either factor that into a function which can be called from here, or to just handle all of this is one performRcpCombine |