This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Put inexpensive ops first in AMDGPUAnnotateUniformValues::visitLoadInst
ClosedPublic

Authored by cfang on Jul 29 2020, 2:37 PM.

Details

Summary

This is in response to the review of https://reviews.llvm.org/D84873:
The expensive check should be reordered last

Diff Detail

Event Timeline

cfang created this revision.Jul 29 2020, 2:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 29 2020, 2:37 PM
cfang requested review of this revision.Jul 29 2020, 2:37 PM
arsenm added inline comments.Jul 29 2020, 4:33 PM
llvm/lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp
137

Missing space

137

Why does this need to check isEntryFunc in both places? The answer is always no if it's not an entry function

cfang updated this revision to Diff 282045.Jul 30 2020, 2:20 PM
cfang marked an inline comment as done.
  1. Add a missing space;
  2. Early exit when it is not an EntryFunction.
cfang marked an inline comment as done.Jul 30 2020, 2:20 PM
arsenm accepted this revision.Jul 30 2020, 2:24 PM
This revision is now accepted and ready to land.Jul 30 2020, 2:24 PM