[PATCH] D61516: [SelectionDAG] fold 'fneg undef' to undef

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 3 09:47:50 PDT 2019


spatel marked an inline comment as done.
spatel added inline comments.


================
Comment at: llvm/test/CodeGen/X86/vec_fneg.ll:52
-; X64-SSE2-NEXT:    retq
+; X64-SSE-LABEL: scalar_fsub_neg0_undef:
+; X64-SSE:       # %bb.0:
+; X64-SSE-NEXT:    retq
   %r = fsub float -0.0, undef
   ret float %r
----------------
arsenm wrote:
> It seems problematic that the DAG lowering is still producing an fneg for this
I'm not following. Is there some place before/after getNode() that we should also fix?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61516/new/

https://reviews.llvm.org/D61516





More information about the llvm-commits mailing list