diff options
author | Craig Topper <craig.topper@intel.com> | 2018-11-19 07:22:26 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-11-19 07:22:26 +0000 |
commit | 8b22bcd39fc6db57d87202f4cc80ab9ecb9e1088 (patch) | |
tree | 81c5b2e40ab57a16f6119180c121bdf4a4a7c3f7 /clang/unittests/Basic/FileManagerTest.cpp | |
parent | 209cfbe60eb7cb4b21ef0b039df4662aec1bd76d (diff) | |
download | llvm-8b22bcd39fc6db57d87202f4cc80ab9ecb9e1088.zip llvm-8b22bcd39fc6db57d87202f4cc80ab9ecb9e1088.tar.gz llvm-8b22bcd39fc6db57d87202f4cc80ab9ecb9e1088.tar.bz2 |
[X86] Use a pcmpgt with 0 instead of psrad 31, to fill elements with the sign bit in v4i32 MULH lowering.
The shift requires a copy to avoid clobbering a register. Comparing with 0 uses an xor to produce 0 that will be overwritten with the compare results. So still requires 2 instructions, but should be one byte shorter since it doesn't need to encode an immediate.
llvm-svn: 347185
Diffstat (limited to 'clang/unittests/Basic/FileManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions