[PATCH] D62257: [DAGCombiner][X86][AArch64] (x - C) + y -> (x + y) - C fold
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 22 08:10:27 PDT 2019
lebedev.ri created this revision.
lebedev.ri added reviewers: RKSimon, craig.topper, spatel.
lebedev.ri added a project: LLVM.
Herald added subscribers: kristof.beyls, javed.absar.
lebedev.ri added a parent revision: D62252: [DAGCombiner][X86][AArch64][SPARC][SystemZ] y - (x + C) -> (y - x) - C fold.
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
Repository:
rL LLVM
https://reviews.llvm.org/D62257
Files:
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/AArch64/sink-addsub-of-const.ll
test/CodeGen/X86/sink-addsub-of-const.ll
test/CodeGen/X86/vector-idiv-sdiv-128.ll
test/CodeGen/X86/vector-idiv-sdiv-256.ll
test/CodeGen/X86/vector-idiv-sdiv-512.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62257.200751.patch
Type: text/x-patch
Size: 18511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190522/8e992792/attachment.bin>
More information about the llvm-commits
mailing list