[PATCH] Lower FNEG ( FABS (x) ) -> FNABS (x) [X86 codegen] PR20578

Elena Demikhovsky elena.demikhovsky at intel.com
Fri Sep 26 14:50:27 PDT 2014


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:12344
@@ +12343,3 @@
+  if (IsFABS)
+    for (SDNode *User : Op->uses())
+      if (User->getOpcode() == ISD::FNEG)
----------------
I think this check is not necessary because the graph always comes from bottom.

http://reviews.llvm.org/D5201






More information about the llvm-commits mailing list