diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2019-08-29 10:50:09 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2019-08-29 10:50:09 +0000 |
commit | cc7495a3556c142bd7250ff184515319815d77ef (patch) | |
tree | d6d5c8657e239f9ea337026d9c7f4f9987ea0c4e /llvm/lib/CodeGen/LiveDebugValues.cpp | |
parent | 8365e420108f59d370d1937dba9c686d3186ef66 (diff) | |
download | bcm5719-llvm-cc7495a3556c142bd7250ff184515319815d77ef.tar.gz bcm5719-llvm-cc7495a3556c142bd7250ff184515319815d77ef.zip |
[X86][CodeGen][NFC] Delay `combineIncDecVector()` from DAGCombine to X86DAGToDAGISel
Summary:
We were previously doing it in DAGCombine.
But we also want to do `sub %x, C` -> `add %x, (sub 0, C)` for vectors in DAGCombine.
So if we had `sub %x, -1`, we'll transform it to `add %x, 1`,
which `combineIncDecVector()` will immediately transform back into `sub %x, -1`,
and here we go again...
I've marked this as NFC since not a single test changes,
but since that 'changes' DAGCombine, probably this isn't fully NFC.
Reviewers: RKSimon, craig.topper, spatel
Reviewed By: craig.topper
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D62327
llvm-svn: 370327
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp')
0 files changed, 0 insertions, 0 deletions