Decouple this setting from EnableIRPA.
To support function calls on AMDGPU, it is necessary to
report the global register usage throughout the kernel's
call graph, so callees need to be handled first.
Paths
| Differential D31512
Allow targets to opt-in to codegen in SCC order ClosedPublic Authored by arsenm on Mar 30 2017, 2:49 PM.
Details
Summary Decouple this setting from EnableIRPA. To support function calls on AMDGPU, it is necessary to
Diff Detail Event TimelineComment Actions I'd lean towards putting the option into TargetPassConfig instead of TargetMachine, what do you think? Comment Actions
I wasn't sure on this. Is there any reason passes would need to check this? If not, then TargetPassConfig is probably the right place. Comment Actions
I can't think of a reason why passes would want to know this (and they certainly shouldn't rely on a specific order). This revision is now accepted and ready to land.Apr 4 2017, 4:20 PM
Revision Contents
Diff 94135 include/llvm/CodeGen/TargetPassConfig.h
lib/CodeGen/TargetPassConfig.cpp
|