summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExprConstant.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2019-05-30 20:37:29 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2019-05-30 20:37:29 +0000
commit63b4741534a9c1520aa618b1bc69b00771a7aa1b (patch)
treee0d80d40109c77bd94bba18fe2dceabdaf7928a2 /clang/lib/AST/ExprConstant.cpp
parent05ad5fd213cf5ee16c5ce5bb653fb92fe381a442 (diff)
downloadbcm5719-llvm-63b4741534a9c1520aa618b1bc69b00771a7aa1b.tar.gz
bcm5719-llvm-63b4741534a9c1520aa618b1bc69b00771a7aa1b.zip
[DAGCombine][X86][AArch64][AMDGPU] (x - y) + -1 -> add (xor y, -1), x fold. Try 3
Summary: This prevents regressions in next patch, and somewhat recovers from the regression to AMDGPU test in D62223. It is indeed not great that we leave vector decrement, don't transform it into vector add all-ones.. https://rise4fun.com/Alive/ZRl This is a recommit, originally committed in rL361852, but reverted to investigate test-suite compile-time hangs, and then reverted in rL362109 to fix missing constant folds that were causing endless combine loops. Reviewers: RKSimon, craig.topper, spatel, arsenm Reviewed By: RKSimon, arsenm Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, javed.absar, dstuttard, tpr, t-tye, kristof.beyls, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D62263 llvm-svn: 362144
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud