[llvm] [LiveDebugValues][NVPTX]VarLocBasedImpl handle vregs, enable for NVPTX (PR #111456)
William G Hatch via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 8 10:24:14 PDT 2024
================
@@ -1240,9 +1245,15 @@ void VarLocBasedLDV::getUsedRegs(const VarLocSet &CollectFrom,
LocIndex::rawIndexForReg(LocIndex::kFirstRegLocation);
uint64_t FirstInvalidIndex =
LocIndex::rawIndexForReg(LocIndex::kFirstInvalidRegLocation);
+ uint64_t FirstVirtualRegIndex =
+ LocIndex::rawIndexForReg(LocIndex::kFirstVirtualRegLocation);
for (auto It = CollectFrom.find(FirstRegIndex),
- End = CollectFrom.find(FirstInvalidIndex);
- It != End;) {
+ PhysEnd = CollectFrom.find(FirstInvalidIndex);
+ It != CollectFrom.end();) {
+ if (It == PhysEnd) {
+ It = CollectFrom.find(FirstVirtualRegIndex);
+ continue;
+ }
----------------
willghatch wrote:
lol, I had it written that way, then decided that this was better.
https://github.com/llvm/llvm-project/pull/111456
More information about the llvm-commits
mailing list