This is an archive of the discontinued LLVM Phabricator instance.

[X86] Building constant vector which element type is half will cause assertion fail.
ClosedPublic

Authored by LiuChen3 on Aug 23 2021, 11:03 PM.

Details

Summary

Fix assertion fail when building con constant vector which element type is half.

Diff Detail

Event Timeline

LiuChen3 created this revision.Aug 23 2021, 11:03 PM
LiuChen3 requested review of this revision.Aug 23 2021, 11:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 23 2021, 11:03 PM
pengfei added inline comments.Aug 23 2021, 11:11 PM
llvm/lib/Target/X86/X86ISelLowering.cpp
9009–9011

Add parentheses to align the format.

llvm/test/CodeGen/X86/build_fp16_constant_vector.ll
3

Maybe we don't need it?

4

ditto.

LiuChen3 updated this revision to Diff 368281.Aug 23 2021, 11:15 PM

Address pengfei's comments.

pengfei accepted this revision.Aug 23 2021, 11:25 PM

LGTM. Thanks Chen.

This revision is now accepted and ready to land.Aug 23 2021, 11:25 PM
This revision was landed with ongoing or failed builds.Aug 23 2021, 11:35 PM
This revision was automatically updated to reflect the committed changes.