This is an archive of the discontinued LLVM Phabricator instance.

[MC] [AArch64] Correctly resolve ":abs_g1:3" etc.
ClosedPublic

Authored by efriedma on Dec 19 2018, 3:53 PM.

Details

Summary

We have to treat constructs like this as if they were "symbolic", to use the correct codepath to resolve them This mostly only affects movz etc. because the other uses of classifySymbolRef conservatively treat everything that isn't a constant as if it were a symbol.

Depends on D55896.

Diff Detail

Repository
rL LLVM

Event Timeline

efriedma created this revision.Dec 19 2018, 3:53 PM
This revision is now accepted and ready to land.Dec 20 2018, 1:23 AM
mgrang accepted this revision.Dec 20 2018, 11:26 AM

LGTM. I have verified that this patch fixes the error if the label is defined before the use (mentioned in D55896).

This revision was automatically updated to reflect the committed changes.