commit | 8cc4b69873a0a73ae69f20274f07889841eb4a46 | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Mon Oct 17 20:41:39 2016 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Mon Oct 17 20:41:39 2016 +0000 |
tree | 9324dcf15f6c22a8b2f7e50a6bd93459a091bebe | |
parent | 8a2a445fa89410bef7efed83fc3e4dfdc48c3146 [diff] |
[DAG] use isConstOrConstSplat in ComputeNumSignBits to optimize SRA The scalar version of this pattern was noted in: https://reviews.llvm.org/D25485 and fixed with: https://reviews.llvm.org/rL284395 More refactoring of the constant/splat helpers is needed and will happen in follow-up patches. Differential Revision: https://reviews.llvm.org/D25685 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284424 91177308-0d34-0410-b5e6-96231b3b80d8