There was quite a bit of logic there that was just in the middle of core loop. I think it makes it easier to follow when it's split off in a separate helper like the others.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
+1 for the idea.
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp | ||
---|---|---|
1819 | Personally I would prefer to make CurrentKnownM0Val a field of SIFoldOperands, rather than pass in a reference to a local variable. But perhaps that is overkill. |
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp | ||
---|---|---|
1819 | It may be a good idea but then it should be done as a separate patch IMO |
Personally I would prefer to make CurrentKnownM0Val a field of SIFoldOperands, rather than pass in a reference to a local variable. But perhaps that is overkill.