File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 16
16
// / uniformity. And every instruction that's downstream and cares about dynamic
17
17
// / uniformity must be convergent (and isel will introduce v_readfirstlane for
18
18
// / them if their operands can't be proven statically uniform).
19
+ // /
20
+ // / Although the transformations are applied at the function level, this pass is
21
+ // / structured as a ModulePass because we must also inspect intrinsic
22
+ // / declarations at the module scope. A function pass would require re-scanning
23
+ // / all instructions in every function, while the module view lets us directly
24
+ // / pair intrinsic uses with their declarations in a single traversal.
19
25
// ===----------------------------------------------------------------------===//
20
26
21
27
#include " AMDGPU.h"
You can’t perform that action at this time.
0 commit comments