[PATCH] D57637: [X86] Lower ISD::UADDO to use the Z flag instead of C flag when the RHS is a constant 1 to encourage INC formation.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 1 23:44:20 PST 2019


craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel.
Herald added a subscriber: javed.absar.
Herald added a project: LLVM.

Add an additional combine to combineCarryThroughADD to reverse it back to the C flag.

I believe this catches the cases that D57547 <https://reviews.llvm.org/D57547> got.


Repository:
  rL LLVM

https://reviews.llvm.org/D57637

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/codegen-prepare-uaddo.ll
  test/CodeGen/X86/combine-add-usat.ll
  test/CodeGen/X86/scheduler-backtracking.ll
  test/CodeGen/X86/slow-incdec.ll
  test/CodeGen/X86/xaluo.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57637.184900.patch
Type: text/x-patch
Size: 7939 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190202/41b6c495/attachment.bin>


More information about the llvm-commits mailing list