diff options
author | Craig Topper <craig.topper@sifive.com> | 2021-10-06 12:16:49 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2021-10-06 14:39:57 -0700 |
commit | 58b68e70ebf6308f982426a2618782f473218eed (patch) | |
tree | f3163d20ac40a7595badc02623aa108526a4dac9 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | a4743eba3c13799e667777764554fd44ccc6a33a (diff) | |
download | llvm-58b68e70ebf6308f982426a2618782f473218eed.zip llvm-58b68e70ebf6308f982426a2618782f473218eed.tar.gz llvm-58b68e70ebf6308f982426a2618782f473218eed.tar.bz2 |
[X86] Don't use popcnt for parity if only bits 7:0 of the input can be non-zero.
Without popcnt we had a special case for using the parity flag from a single test i8 test instruction if only bits 7:0 could be non-zero. That special case is still useful when we have popcnt.
To reach this special case, we enable custom lowering of parity for i16/i32/i64 even when popcnt is enabled. The check for POPCNT being enabled is now after the special case in LowerPARITY.
Fixes PR52093
Differential Revision: https://reviews.llvm.org/D111249
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions