diff options
author | Craig Topper <craig.topper@intel.com> | 2018-09-11 17:57:20 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-09-11 17:57:20 +0000 |
commit | 4e63db83873f22d185a3f27633aae710c2517efe (patch) | |
tree | 72314adc604f48ec1a0530d920c418e2e958b5b2 /libcxx/include/algorithm | |
parent | 5b7e21a6b7e35cd8fba49efe7462e610d78c9314 (diff) | |
download | bcm5719-llvm-4e63db83873f22d185a3f27633aae710c2517efe.tar.gz bcm5719-llvm-4e63db83873f22d185a3f27633aae710c2517efe.zip |
[InstCombine] Fix incorrect usage of getPrimitiveSizeInBits when we should be using the element size for vectors
For vectors, getPrimitiveSizeInBits returns the full vector width. This code should using the element size for vectors. This could be fixed by calling getScalarSizeInBits, but its even easier to just get it from the APInt we're checking.
Differential Revision: https://reviews.llvm.org/D51938
llvm-svn: 341971
Diffstat (limited to 'libcxx/include/algorithm')
0 files changed, 0 insertions, 0 deletions