This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel][CallLowering] Look through call parameters for flags
ClosedPublic

Authored by paquette on Aug 17 2020, 6:04 PM.

Details

Summary

We weren't looking through the parameters on calls at all.

E.g., say you had

declare i32 @zext(i32 zeroext %x)

...
%y = call i32 @zext(i32 %something)
...

At the point of the call, we wouldn't know that %something should have the zeroext attribute.

This sets flags in about the same way as TargetLoweringBase::ArgListEntry::setAttributes.

Diff Detail

Event Timeline

paquette created this revision.Aug 17 2020, 6:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 17 2020, 6:04 PM
paquette requested review of this revision.Aug 17 2020, 6:04 PM
arsenm accepted this revision.Aug 17 2020, 7:14 PM

LGTM, I noticed this a while ago

This revision is now accepted and ready to land.Aug 17 2020, 7:14 PM