diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-06-27 19:57:53 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-06-27 19:57:53 +0000 |
commit | 5fe0197622109d8ed51569258c19aaaa4214bbeb (patch) | |
tree | a17ce8a777166bc3afeaaa44033def217b8e1fc3 /llvm/lib/ObjectYAML/WasmYAML.cpp | |
parent | ccbb8107764528f0405145fbcbb6eed84fd3f87a (diff) | |
download | bcm5719-llvm-5fe0197622109d8ed51569258c19aaaa4214bbeb.tar.gz bcm5719-llvm-5fe0197622109d8ed51569258c19aaaa4214bbeb.zip |
[InstCombine] Propagate nsw flag when turning mul by pow2 into shift when the constant is a vector splat or the scalar bit width is larger than 64-bits
The check to see if we can propagate the nsw flag used m_ConstantInt(uint64_t*&) which doesn't work with splat vectors and has a restriction that the bitwidth of the ConstantInt must be 64-bits are less.
This patch changes it to use m_APInt to remove both these issues
Differential Revision: https://reviews.llvm.org/D34699
llvm-svn: 306457
Diffstat (limited to 'llvm/lib/ObjectYAML/WasmYAML.cpp')
0 files changed, 0 insertions, 0 deletions