diff options
author | QingShan Zhang <qshanz@cn.ibm.com> | 2020-04-15 02:17:36 +0000 |
---|---|---|
committer | QingShan Zhang <qshanz@cn.ibm.com> | 2020-04-15 02:20:58 +0000 |
commit | c9f9c79c5a4868f8bb7526c104aa18fd1dc42002 (patch) | |
tree | 00083b86be1f6c0c2e4f506e3c3a4433677d6d7d /llvm/lib/Support/StringExtras.cpp | |
parent | cc149172dab22e404e74b3dba9abee1e9416af8e (diff) | |
download | llvm-c9f9c79c5a4868f8bb7526c104aa18fd1dc42002.zip llvm-c9f9c79c5a4868f8bb7526c104aa18fd1dc42002.tar.gz llvm-c9f9c79c5a4868f8bb7526c104aa18fd1dc42002.tar.bz2 |
[NFC][DAGCombine] Change the value of NegatibleCost to make it align with the semantics
This is a minor NFC change to make the code more clear. We have the NegatibleCost that
has cheaper, neutral, and expensive. Typically, the smaller one means the less cost.
It is inverse for current implementation, which makes following code not easy to read.
If (CostX > CostY) negate(X)
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D77993
Diffstat (limited to 'llvm/lib/Support/StringExtras.cpp')
0 files changed, 0 insertions, 0 deletions