diff options
| author | Craig Topper <craig.topper@intel.com> | 2018-01-27 08:41:03 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2018-01-27 08:41:03 +0000 |
| commit | c80f0ced84ba856a86889b70701150dad1bab395 (patch) | |
| tree | ab6fbcaf64b1e07775311a2e849a6fcb707033b1 /llvm/test/Transforms/LoopDataPrefetch/PowerPC/basic.ll | |
| parent | 77a5c965607757d3c0f7e83525a41f655bb5db89 (diff) | |
| download | bcm5719-llvm-c80f0ced84ba856a86889b70701150dad1bab395.tar.gz bcm5719-llvm-c80f0ced84ba856a86889b70701150dad1bab395.zip | |
[SelectionDAG] Make DAGTypeLegalizer::PromoteSetCCOperands handle SETEQ/SETNE correctly for vector types.
The code was using getValueSizeInBits and combining with the result of a call to DAG.ComputeNumSignBits. But for vector types getValueSizeInBits returns the width of the full vector while ComputeNumSignBits is going to give a number no larger than the width of a single element. So we should be using getScalarValueSizeInBits to get the element width.
llvm-svn: 323583
Diffstat (limited to 'llvm/test/Transforms/LoopDataPrefetch/PowerPC/basic.ll')
0 files changed, 0 insertions, 0 deletions

