[llvm] [AMDGPU] Move INIT_EXEC lowering from SILowerControlFlow to SIWholeQuadMode (PR #94452)
Carl Ritson via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 05:00:37 PDT 2024
================
@@ -1605,11 +1703,14 @@ bool SIWholeQuadMode::runOnMachineFunction(MachineFunction &MF) {
// Shader is simple does not need any state changes or any complex lowering
if (!(GlobalFlags & (StateWQM | StateStrict)) && LowerToCopyInstrs.empty() &&
- LowerToMovInstrs.empty() && KillInstrs.empty()) {
+ LowerToMovInstrs.empty() && KillInstrs.empty() &&
+ InitExecInstrs.empty()) {
----------------
perlfu wrote:
Could you just add `lowerInitExecInstrs()` to this code path and avoid the empty check.
This way there is no need to run the rest of the pass for just an SI_INIT_EXEC?
https://github.com/llvm/llvm-project/pull/94452
More information about the llvm-commits
mailing list