aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/libclang/LibclangTest.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-07-10 19:09:00 +0000
committerCraig Topper <craig.topper@intel.com>2018-07-10 19:09:00 +0000
commit04ded1ac1fd594ff63fed997659c7c8cf62b0f3c (patch)
treef00bc84b2c9d2de725197fbe4a24a469efa5f030 /clang/unittests/libclang/LibclangTest.cpp
parent0f6275ab43ff7b0401e44e33601c88cbca1ac34b (diff)
downloadllvm-04ded1ac1fd594ff63fed997659c7c8cf62b0f3c.zip
llvm-04ded1ac1fd594ff63fed997659c7c8cf62b0f3c.tar.gz
llvm-04ded1ac1fd594ff63fed997659c7c8cf62b0f3c.tar.bz2
[X86] Remove AddedComplexity from register form of NOT. NFCI
I believe isProfitableToFold will stop the load folding that this was intended to overcome. Given an (xor load, -1), isProfitableToFold will see that the immediate can be folded with the xor using a one byte immediate since it can be sign extended. It doesn't know about NOT, but the one byte immediate check is enough to stop the fold. llvm-svn: 336712
Diffstat (limited to 'clang/unittests/libclang/LibclangTest.cpp')
0 files changed, 0 insertions, 0 deletions