[all-commits] [llvm/llvm-project] 97e57f: [DAGCombiner] Use getAnyExtOrTrunc instead of getS...

topperc via All-commits all-commits at lists.llvm.org
Sun Apr 5 22:50:37 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 97e57f3b24509efcadf83eb7436c044a2becd973
      https://github.com/llvm/llvm-project/commit/97e57f3b24509efcadf83eb7436c044a2becd973
  Author: Craig Topper <craig.topper at gmail.com>
  Date:   2020-04-05 (Sun, 05 Apr 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

  Log Message:
  -----------
  [DAGCombiner] Use getAnyExtOrTrunc instead of getSExtOrTrunc in the zext(setcc) combine.

We're ANDing with 1 right after which will cause the SIGN_EXTEND to
be combined to ANY_EXTEND later. Might as well just start with an
ANY_EXTEND.

While there replace create the AND using the getZeroExtendInReg
helper to remove the need to explicitly create the VecOnes constant.




More information about the All-commits mailing list