[PATCH] D49924: [DAGCombiner] transform sub-of-shifted-signbit to add
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 27 12:30:43 PDT 2018
lebedev.ri added inline comments.
================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:2742
}
+ if (!LegalOperations && N1.getOpcode() == ISD::SRL && N1.hasOneUse()) {
----------------
```
// sub N0, (lshr N10, width-1) -> add N0, (ashr N10, width-1)
```
https://reviews.llvm.org/D49924
More information about the llvm-commits
mailing list