diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2019-05-30 20:36:54 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2019-05-30 20:36:54 +0000 |
commit | 1d9ec7a81b7651d8f02e28cfb328e2a034941a8c (patch) | |
tree | 92572684a84b1b17ab78dceb449407a3d34ec678 /clang/lib/AST/DeclTemplate.cpp | |
parent | c58130bc8445edfa7438fe210da442b7019d0363 (diff) | |
download | bcm5719-llvm-1d9ec7a81b7651d8f02e28cfb328e2a034941a8c.tar.gz bcm5719-llvm-1d9ec7a81b7651d8f02e28cfb328e2a034941a8c.zip |
[DAGCombiner][X86][AArch64][AMDGPU] (x + C) - y -> (x - y) + C fold. Try 3
Summary:
The main motivation is shown by all these `neg` instructions that are now created.
In particular, the `@reg32_lshr_by_negated_unfolded_sub_b` test.
AArch64 test changes all look good (`neg` created), or neutral.
X86 changes look neutral (vectors), or good (`neg` / `xor eax, eax` created).
I'm not sure about `X86/ragreedy-hoist-spill.ll`, it looks like the spill
is now hoisted into preheader (which should still be good?),
2 4-byte reloads become 1 8-byte reload, and are elsewhere,
but i'm not sure how that affects that loop.
I'm unable to interpret AMDGPU change, looks neutral-ish?
This is hopefully a step towards solving [[ https://bugs.llvm.org/show_bug.cgi?id=41952 | PR41952 ]].
https://rise4fun.com/Alive/pkdq (we are missing more patterns, i'll submit them later)
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: craig.topper, RKSimon, spatel, arsenm
Reviewed By: RKSimon
Subscribers: bjope, qcolombet, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, javed.absar, dstuttard, tpr, t-tye, kristof.beyls, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D62223
llvm-svn: 362142
Diffstat (limited to 'clang/lib/AST/DeclTemplate.cpp')
0 files changed, 0 insertions, 0 deletions