[DAGCombine] Checking the cost directly to improve the code readability
authorQingShan Zhang <qshanz@cn.ibm.com>
Wed, 29 Apr 2020 01:35:30 +0000 (01:35 +0000)
committerQingShan Zhang <qshanz@cn.ibm.com>
Wed, 29 Apr 2020 01:49:39 +0000 (01:49 +0000)
commitb5f89744cca1f12c452b7ce4504bc6fad32eae0e
tree6a52bb357c82589748f631a56fa3260ee6a670ca
parent7585ac79dd8a2d021f816dfc9cf32d01b6054d27
[DAGCombine] Checking the cost directly to improve the code readability

Call getNegatedExpression(Cost) and check the Cost to make the code more clear.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D78347
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/PowerPC/qpx-recipest.ll