[PATCH] D57234: [X86] Simplify X86ISD::ADD/SUB if we don't use the result flag

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 25 05:20:27 PST 2019


RKSimon created this revision.
RKSimon added reviewers: craig.topper, spatel.

Simplify to the generic ISD::ADD/SUB if we don't make use of the result flag.

This mainly helps with ADDCARRY/SUBBORROW intrinsics which get expanded to X86ISD::ADD/SUB but could be simplified further.

Noticed in some of the test cases in PR31754


Repository:
  rL LLVM

https://reviews.llvm.org/D57234

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/adx-intrinsics-upgrade.ll
  test/CodeGen/X86/adx-intrinsics.ll
  test/CodeGen/X86/combine-adx.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57234.183524.patch
Type: text/x-patch
Size: 4719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190125/68713446/attachment.bin>


More information about the llvm-commits mailing list