This is an archive of the discontinued LLVM Phabricator instance.

[LowerConstantIntrinsics] avoid crashing on alloca with unexpected operand type
ClosedPublic

Authored by spatel on Apr 19 2021, 8:20 AM.

Details

Summary

The test here is reduced from the fuzzer-generated crasher in:
https://llvm.org/PR50023

I don't know if this is the best or complete solution, but the zext of the i42 type appears to match the behavior that I'm seeing if we run a weird type example like this through the IR optimizer with -O1.

Diff Detail

Event Timeline

spatel created this revision.Apr 19 2021, 8:20 AM
spatel requested review of this revision.Apr 19 2021, 8:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2021, 8:20 AM
This revision is now accepted and ready to land.Apr 19 2021, 8:41 AM
RKSimon accepted this revision.Apr 19 2021, 9:25 AM

Awesome, thanks @spatel