[PATCH] D28846: DAG: Fold fneg into compare with constant into the constant
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 17 23:02:24 PST 2017
arsenm created this revision.
Herald added a reviewer: tstellarAMD.
Herald added subscribers: nhaehnle, wdng.
fcmp (fneg x), c, pred -> fcmp x, -c, (swap pred)
InstCombine already does this.
https://reviews.llvm.org/D28846
Files:
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/AMDGPU/setcc-fneg-constant.ll
test/CodeGen/SystemZ/fp-cmp-05.ll
test/CodeGen/XCore/fneg.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28846.84801.patch
Type: text/x-patch
Size: 8873 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170118/90c4744b/attachment.bin>
More information about the llvm-commits
mailing list