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

Eric Christopher via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 23 16:54:16 PDT 2016


echristo added a subscriber: echristo.

================
Comment at: lib/Target/PowerPC/PPCISelLowering.cpp:12117
@@ +12116,3 @@
+
+bool PPCTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT) const {
+  return Imm.isPosZero() && Subtarget.hasVSX();
----------------
Here's a good point for a comment on things that you expect to work :)


https://reviews.llvm.org/D23614





More information about the llvm-commits mailing list