[PATCH] D57234: [X86] Simplify X86ISD::ADD/SUB if we don't use the result flag
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 25 06:47:27 PST 2019
spatel accepted this revision.
spatel added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lib/Target/X86/X86ISelLowering.cpp:40451
+ // If we don't use the flag result, simplify back to a simple ADD/SUB.
+ if (N->hasAnyUseOfValue(1))
+ return SDValue();
----------------
Assert that the incoming opcode is X86ISD::ADD or X86ISD::SUB?
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57234/new/
https://reviews.llvm.org/D57234
More information about the llvm-commits
mailing list