This is an archive of the discontinued LLVM Phabricator instance.

[test][AlwaysInline]:Correct comment and file check for always-inline.ll
ClosedPublic

Authored by iamarchit123 on Jun 14 2022, 6:04 PM.

Details

Summary

This fixes a useless filecheck and wrong comment for always-inline.ll. Testing
has been done using ninja check-llvm and llvm-lit always-inline.ll --show-all.

Diff Detail

Event Timeline

iamarchit123 created this revision.Jun 14 2022, 6:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 6:04 PM

upgrade to commit

iamarchit123 published this revision for review.Jun 14 2022, 6:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 6:24 PM
iamarchit123 updated this revision to Diff 437337.EditedJun 15 2022, 2:26 PM

Updating D127815: [test][AlwaysInline]:Correct comment and file check for always-inline.ll

modimo added a reviewer: hoy.Jun 15 2022, 2:33 PM
hoy added inline comments.Jun 15 2022, 2:38 PM
llvm/test/Transforms/Inline/always-inline.ll
116

Should we have check like below after the label?

; CHECK: call void @inner6
iamarchit123 added inline comments.Jun 15 2022, 4:12 PM
llvm/test/Transforms/Inline/always-inline.ll
116

Yes, that can be added but do you think the functionality that it will check gets already checked at line 131 and that is sufficient, or this CHECK will indeed check for something new?

hoy accepted this revision.Jun 15 2022, 4:56 PM

LGTM, thanks.

llvm/test/Transforms/Inline/always-inline.ll
116

The check at line 131 is for a different function scope, i.e, outer6. Note that the check at line 130 signals that the checker is in outer6 scope when it is there. I was thinking about adding a check inside the inner6 scope.

On the second thought, I might misunderstand the original author's intention, which may be to check inner6 was not inlined into outer6. To that extent the current change is good.

This revision is now accepted and ready to land.Jun 15 2022, 4:56 PM
modimo added inline comments.Jun 15 2022, 5:34 PM
llvm/test/Transforms/Inline/always-inline.ll
116

I think the intent behind the checks on inner functions is: if they are inlined, are they also successfully eliminated from IR? ; CHECK-NOT: @inner4( for example. If that's correct, then agreed this can remain as is.

modimo accepted this revision.Jun 17 2022, 11:56 AM
This revision was landed with ongoing or failed builds.Jun 20 2022, 4:53 PM
This revision was automatically updated to reflect the committed changes.