diff options
| author | Roman Lebedev <lebedev.ri@gmail.com> | 2019-05-28 17:54:04 +0000 |
|---|---|---|
| committer | Roman Lebedev <lebedev.ri@gmail.com> | 2019-05-28 17:54:04 +0000 |
| commit | 6a24c9b9abd0f0f46161a93aa908ce4b32190db8 (patch) | |
| tree | 056473201736cc8326050d70df78166f34fdd98f /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
| parent | 1499f65ac1702d0858c1f7a5406929040a2e6e1e (diff) | |
| download | bcm5719-llvm-6a24c9b9abd0f0f46161a93aa908ce4b32190db8.tar.gz bcm5719-llvm-6a24c9b9abd0f0f46161a93aa908ce4b32190db8.zip | |
[DAGCombiner][X86][AArch64] (x - C) + y -> (x + y) - C fold
Summary:
Only vector tests are being affected here,
since subtraction by scalar constant is rewritten
as addition by negated constant.
No surprising test changes.
https://rise4fun.com/Alive/pbT
Reviewers: RKSimon, craig.topper, spatel
Reviewed By: RKSimon
Subscribers: javed.absar, kristof.beyls, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D62257
llvm-svn: 361854
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
0 files changed, 0 insertions, 0 deletions

