[PATCH] D23614: [PPC] Generate positive FP zero using xor insn instead of loading from constant area

Ehsan Amiri via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 14 09:43:37 PDT 2016


amehsan added inline comments.


================
Comment at: lib/Target/PowerPC/PPCISelLowering.cpp:12121
+
+bool PPCTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT) const {
+
----------------
kbarton wrote:
> I agree with Eric. I think a general comment would be useful here. Something like: Single-precision and double precision FP immediates can be loaded when VSX instructions are available and the Immediate has value 0. Half-precision and 80-bit are excluded because...
> 
I have explained in another comment why this does not support f16 and f80. If you don't mind to approve this, I will add a summary of that comment to the code, before committing the change.


https://reviews.llvm.org/D23614





More information about the llvm-commits mailing list