[all-commits] [llvm/llvm-project] e195ff: Recommit "[X86] Use X86ISD::SUB instead of X86ISD:...

topperc via All-commits all-commits at lists.llvm.org
Tue Feb 4 12:19:49 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e195ff98f6cc2f868d5f8c19d2ab93cfb3a2cb65
      https://github.com/llvm/llvm-project/commit/e195ff98f6cc2f868d5f8c19d2ab93cfb3a2cb65
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-02-04 (Tue, 04 Feb 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  Recommit "[X86] Use X86ISD::SUB instead of X86ISD::CMP in some places."

This time with correct types for the data result from the SUB.

Original commit message:

Our normal lowering for ISD::SETCC uses X86ISD::SUB to enable
CSE unless the RHS is 0. optimizeCompareInstr called by the peephole
pass can turn subs with unused results into cmps to clean this up.

This commit makes other places that create X86ISD::CMP have the
same behavior.




More information about the All-commits mailing list