Virtual registers that are undef have an empty LiveInterval at this
point, which means beginIndex() and endIndex() cannot be used. We
only need those indices to determine the range in which to scan for
affected other NSA instructions, and undef operands cannot contribute
to that range.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM with nit
llvm/lib/Target/AMDGPU/GCNNSAReassign.cpp | ||
---|---|---|
292 | Treating a loop counter as a boolean is mildly unexpected. I would prefer to write this out as I == 0 |
Comment Actions
Unit tests: pass. 62373 tests passed, 0 failed and 839 were skipped.
clang-tidy: pass.
clang-format: pass.
Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
llvm/lib/Target/AMDGPU/GCNNSAReassign.cpp | ||
---|---|---|
292 | Sure, I'll change that. |
Treating a loop counter as a boolean is mildly unexpected. I would prefer to write this out as I == 0