[all-commits] [llvm/llvm-project] 1d1515: [X86] Add an isel pattern for (i8 (trunc (i16 (bit...
topperc via All-commits
all-commits at lists.llvm.org
Tue Aug 25 18:28:02 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 1d1515a9e28c7f32af548584ebed66cd8caae84f
https://github.com/llvm/llvm-project/commit/1d1515a9e28c7f32af548584ebed66cd8caae84f
Author: Craig Topper <craig.topper at intel.com>
Date: 2020-08-25 (Tue, 25 Aug 2020)
Changed paths:
M llvm/lib/Target/X86/X86InstrAVX512.td
Log Message:
-----------
[X86] Add an isel pattern for (i8 (trunc (i16 (bitconvert (v16i1 X))))) to avoid an extra EXTRACT_SUBREG
Since we can only copy to GR32 we had to EXTRACT from GR32, but
we would first go to GR16 and then the truncate would extra again
to GR8. This adds a special case to go directly from GR32 to GR8.
This would eventually get cleaned up, but though maybe we should
avoid doing it in the first place. Our k-register handling is weird
and we could probably stand to have some more special ISD nodes
for the conversions so the i32 type would be explicit.
More information about the All-commits
mailing list