diff options
author | QingShan Zhang <qshanz@cn.ibm.com> | 2020-04-27 03:46:42 +0000 |
---|---|---|
committer | QingShan Zhang <qshanz@cn.ibm.com> | 2020-04-27 04:11:42 +0000 |
commit | 2957fa0cd196321a261aa5fc6050c846477a4d30 (patch) | |
tree | 5245ab498b883287b1e02d114dc17ff859a30080 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 06bdffb2bb45d8666ec86782d21214ef545a71fd (diff) | |
download | llvm-2957fa0cd196321a261aa5fc6050c846477a4d30.zip llvm-2957fa0cd196321a261aa5fc6050c846477a4d30.tar.gz llvm-2957fa0cd196321a261aa5fc6050c846477a4d30.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions