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 | ||
|---|---|---|
| 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. | |
| 80 | Since you're cleaning up, why not just return this expression? | |
| 128 | Return Register? | |
| 135 | Could just return Register() here and elsewhere. | |
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.