This is an archive of the discontinued LLVM Phabricator instance.

[X86] Fix a lowering issue of mask.compress which has undef float passthrough
ClosedPublic

Authored by yubing on Aug 16 2022, 1:17 AM.

Details

Summary

Previously, LegaizeDAG didn't check mask.compress's passthrough might be float, and this lead to getConstant crash since it doesn't support fp

Diff Detail

Event Timeline

yubing created this revision.Aug 16 2022, 1:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 16 2022, 1:17 AM
yubing requested review of this revision.Aug 16 2022, 1:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 16 2022, 1:17 AM

The title is too long. Move it to description.

pengfei added inline comments.Aug 16 2022, 1:30 AM
llvm/test/CodeGen/X86/compress-undef-float-passthrough.ll
27–30

unreachable seems unnecessary.

yubing retitled this revision from [X86] Fix a lowering issue of mask.compress which has undef float passthrough Previously, LegaizeDAG didn't check mask.compress's passthrough might be float , and this lead to getConstant crash since it doesn't support fp. to [X86] Fix a lowering issue of mask.compress which has undef float passthrough.Aug 16 2022, 1:33 AM
yubing edited the summary of this revision. (Show Details)
yubing updated this revision to Diff 452918.Aug 16 2022, 1:43 AM

address Phoebe's comments

RKSimon accepted this revision.Aug 16 2022, 2:01 AM

LGTM

This revision is now accepted and ready to land.Aug 16 2022, 2:01 AM
This revision was landed with ongoing or failed builds.Aug 16 2022, 2:55 AM
This revision was automatically updated to reflect the committed changes.