This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Select call_indirect for alloca calls
ClosedPublic

Authored by aheejin on Mar 28 2023, 1:08 AM.

Details

Summary

Currently calling stack locations is selected using CALL in ISel,
resulting in an invalid code and crashing in AsmPrinter. FastISel
correctly selects it will CALL_INDIRECT.

Fixes the problem reported in D146781.

Diff Detail

Event Timeline

aheejin created this revision.Mar 28 2023, 1:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 28 2023, 1:08 AM
Herald added subscribers: pmatos, asb, wingo and 6 others. · View Herald Transcript
aheejin requested review of this revision.Mar 28 2023, 1:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 28 2023, 1:08 AM

what about isGlobal, just like #60003 mentioned?

tlively accepted this revision.Mar 28 2023, 7:25 AM

LGTM!

This revision is now accepted and ready to land.Mar 28 2023, 7:25 AM

what about isGlobal, just like #60003 mentioned?

I took a look at this, and this seems to be a different problem, which can be fixed separately.

HerrCai0907 accepted this revision.Mar 29 2023, 3:56 AM

so LGTM

This revision was landed with ongoing or failed builds.Mar 29 2023, 12:47 PM
This revision was automatically updated to reflect the committed changes.

what about isGlobal, just like #60003 mentioned?

The attempted fix for this is in D147397.