[all-commits] [llvm/llvm-project] 2957fa: [NFC][DAGCombine] Adding three helper functions an...

QingShan Zhang via All-commits all-commits at lists.llvm.org
Sun Apr 26 21:13:14 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2957fa0cd196321a261aa5fc6050c846477a4d30
      https://github.com/llvm/llvm-project/commit/2957fa0cd196321a261aa5fc6050c846477a4d30
  Author: QingShan Zhang <qshanz at cn.ibm.com>
  Date:   2020-04-27 (Mon, 27 Apr 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/lib/Target/X86/X86ISelLowering.h

  Log Message:
  -----------
  [NFC][DAGCombine] Adding three helper functions and change the getNegatedExpression to negateExpression

This is a NFC patch for D77319. The idea is to hide the getNegatibleCost inside the getNegatedExpression()
to have it return null if the cost is expensive, and add some helper function for easy to use. And
rename the old getNegatedExpression to negateExpression to avoid the semantic conflict.

Reviewed By: RKSimon

Differential revision: https://reviews.llvm.org/D78291




More information about the All-commits mailing list