This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel][InlineAsm] Fix matching input constraint to physreg
ClosedPublic

Authored by Petar.Avramovic on Aug 3 2020, 4:48 AM.

Details

Summary

Simply add given input and mark it as tied.
Doesn't create additional copy compared to
matching input constraint to virtual register.

Diff Detail

Event Timeline

Petar.Avramovic created this revision.Aug 3 2020, 4:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2020, 4:48 AM
Petar.Avramovic requested review of this revision.Aug 3 2020, 4:48 AM
kschwarz accepted this revision.Aug 3 2020, 6:51 AM

LGTM, might be worth to include this also for the 11.x release.

llvm/lib/CodeGen/GlobalISel/InlineAsmLowering.cpp
467

I think the else branch needs braces, since one of the branches need them.

This revision is now accepted and ready to land.Aug 3 2020, 6:51 AM

Remove else branch.

might be worth to include this also for the 11.x release.

What is the procedure for that?

Either you can create a bug in Bugzilla (https://bugs.llvm.org/), asking for this revision to be merged to the release branch and mark it as a release blocker of the 11.0.0 release, or you can contact the release manager directly (hans@chromium.org).

@jrtc27, does this fix the issue you are seeing in sel4?

jrtc27 added a subscriber: sorear.Aug 5 2020, 8:53 PM

Either you can create a bug in Bugzilla (https://bugs.llvm.org/), asking for this revision to be merged to the release branch and mark it as a release blocker of the 11.0.0 release, or you can contact the release manager directly (hans@chromium.org).

@jrtc27, does this fix the issue you are seeing in sel4?

I was only acting as messenger (and diagnoser of the reduced test case). @sorear ?

sorear added a comment.Aug 5 2020, 9:22 PM

Either you can create a bug in Bugzilla (https://bugs.llvm.org/), asking for this revision to be merged to the release branch and mark it as a release blocker of the 11.0.0 release, or you can contact the release manager directly (hans@chromium.org).

@jrtc27, does this fix the issue you are seeing in sel4?

Yes, when applied on top of llvmorg-11.0.0-rc1.

@hans, could you please commit this patch for 11.x release?

hans added a comment.Aug 6 2020, 4:51 AM

@hans, could you please commit this patch for 11.x release?

It needs to be committed to trunk first, then I'll merge it after a day or two.

For completeness I just filed https://bugs.llvm.org/show_bug.cgi?id=47021 for this issue. I missed the "contact the release manager directly" as a viable alternative on my first reading, so that was probably unnecessary, apologies if this creates a problem.

hans added a comment.Aug 7 2020, 10:51 AM

For completeness I just filed https://bugs.llvm.org/show_bug.cgi?id=47021 for this issue. I missed the "contact the release manager directly" as a viable alternative on my first reading, so that was probably unnecessary, apologies if this creates a problem.

No problem at all. Pushed to 11.x as b067f5eb56684476b5dad4ebd8d6bc5291603d4e.

pzheng added a subscriber: pzheng.Aug 11 2020, 10:48 AM