Remove duplicate code and move things around to make it easier to
add additional optimisations to the pass.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks fine to me. More ideas inline.
llvm/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp | ||
---|---|---|
78–79 | Make this a member function so you don't have to pass ExecReg in? Or just inline it? It's so simple now, it hardly seems worth having it as a separate function. | |
79 | Since you're cleaning up, why not just return this expression? | |
121–122 | Return Register? | |
128 | Could just return Register() here and elsewhere. |
Since you're cleaning up, why not just return this expression?