This is an archive of the discontinued LLVM Phabricator instance.

Fix Hexagon optimize addressing mode pass so that it handles only BaseImmOffset addressing mode.
ClosedPublic

Authored by pranavb on Jan 12 2022, 10:59 AM.

Details

Summary

This is a fix for a crash in the HexagonOptAddrMode pass that was looking for the third operand (offset) in the following instruction
that does not, in fact, have a third operand.

$r1 = L2_loadw_locked $r1

Additionally, this patch also adds an addrMode value to vgather pseudos in the Hexagon backend.

Diff Detail

Event Timeline

pranavb created this revision.Jan 12 2022, 10:59 AM
pranavb requested review of this revision.Jan 12 2022, 10:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2022, 10:59 AM
sgundapa accepted this revision.Jan 12 2022, 11:04 AM
This revision is now accepted and ready to land.Jan 12 2022, 11:04 AM
pranavb updated this revision to Diff 399549.Jan 12 2022, 11:01 PM

Formatted using clang-format.

pranavb updated this revision to Diff 399795.Jan 13 2022, 2:39 PM

Fixed run line in testcase

srj added a comment.Jan 14 2022, 9:41 AM

Any ETA on when this will land?

Let me ping Krzysztof and Sumanth for a review of the latest revision. This is ready to land as far as I am concerned.

sgundapa accepted this revision.Jan 14 2022, 11:57 AM