This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Skip promote-alloca for insertelement/insertvalue users
ClosedPublic

Authored by cdevadas on Apr 29 2021, 12:13 PM.

Details

Summary

It is difficult to track the users of vector and aggregate types.

Diff Detail

Event Timeline

cdevadas created this revision.Apr 29 2021, 12:13 PM
cdevadas requested review of this revision.Apr 29 2021, 12:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 29 2021, 12:13 PM
arsenm added inline comments.Apr 29 2021, 12:17 PM
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
611

s/instructions of vector type/aggregate instructions/?

613–614

I would move this below the other more common instruction cases

llvm/test/CodeGen/AMDGPU/skip-promote-alloca-vector-users.ll
12

Don't use a volatile store, if we did analyze the users this would have been skipped anyway

23

Ditto

34

Ditto

cdevadas updated this revision to Diff 341608.Apr 29 2021, 12:33 PM

Patch updated.

arsenm accepted this revision.Apr 29 2021, 1:13 PM
This revision is now accepted and ready to land.Apr 29 2021, 1:13 PM
This revision was landed with ongoing or failed builds.Apr 29 2021, 8:08 PM
This revision was automatically updated to reflect the committed changes.