[PATCH] D24808: [AArch64] Avoid materializing 0.0 when generating FP CSEL
Geoff Berry via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 21 12:16:45 PDT 2016
gberry added a subscriber: gberry.
================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:4083
@@ +4082,3 @@
+
+ if (DAG.getTarget().Options.UnsafeFPMath) {
+ // Transform "a == 0.0 ? 0.0 : x" to "a == 0.0 ? a : x" and
----------------
Isn't the goal to check these options less and look at the DAG node flags instead?
If so, this might be better written as follows?
DAG.getFlags()->hasNoSignedZeros()
Repository:
rL LLVM
https://reviews.llvm.org/D24808
More information about the llvm-commits
mailing list