[PATCH] D41969: [AMDGPU] stop image_store being moved illegally
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 12 08:21:41 PST 2018
arsenm accepted this revision.
arsenm added a comment.
This revision is now accepted and ready to land.
In https://reviews.llvm.org/D41969#974088, @tstellar wrote:
> In https://reviews.llvm.org/D41969#974049, @tstellar wrote:
>
> > I think changing AMDGPUImagePseudoSourceValue::isAliased() to return true may fix this.
>
>
> This is the most conservative way to fix it. I think the better way to fix this would be to change AMDGPUImagePseudoSourceValue::mayAlias() to true. You could improve this even further by making sure that image instructions that reference the same resource have the same PseudoSourceValue. ScheduleDAGInstrs::buildSchedGraph() is where all the dependencies are calculated.
That images have the same resource argument do have the same PSV now. I think the issue may be the non-constant offsets in the intrinsics aren't represented anywhere
https://reviews.llvm.org/D41969
More information about the llvm-commits
mailing list