Page MenuHomePhabricator

[X86][AVX512] Fix build fail after D81548

Authored by pengfei on Thu, Jul 30, 2:10 AM.



Test function mask_cmp_128 failed during ISEL
LLVM ERROR: Cannot select: t37: v8i1 = X86ISD::KSHIFTL t48, TargetConstant:i8<4>
due to v8i1 only available under AVX512DQ.

Diff Detail

Event Timeline

pengfei created this revision.Thu, Jul 30, 2:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptThu, Jul 30, 2:10 AM
pengfei requested review of this revision.Thu, Jul 30, 2:10 AM
RKSimon added inline comments.Thu, Jul 30, 2:42 AM

We might be able to recover from some of the regressions if we can use this before legalization as well?

yubing added inline comments.Thu, Jul 30, 3:49 AM

Eh, You mean we do the combineBitcastToBoolVector before legalizaeType procedure regardless of whether VT is Legal and let LegalizeType procedure handle the illegal Type?

pengfei updated this revision to Diff 282096.Thu, Jul 30, 6:14 PM

Fix a mistake.

pengfei edited the summary of this revision. (Show Details)Thu, Jul 30, 6:16 PM
pengfei added inline comments.Thu, Jul 30, 6:23 PM

I made a mistake. v16i1 is legal for avx512f. There's no regressions now.

pengfei added inline comments.Sun, Aug 2, 5:47 PM

Ping. @RKSimon, I think the check here won't break the further optimization. Can we let this patch in? Or you have a better solution?

RKSimon accepted this revision.Mon, Aug 3, 11:31 AM

LGTM - cheers

This revision is now accepted and ready to land.Mon, Aug 3, 11:31 AM
This revision was automatically updated to reflect the committed changes.