aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectTarget.cpp
diff options
context:
space:
mode:
authorPhilip Reames <preames@rivosinc.com>2024-07-23 08:52:04 -0700
committerGitHub <noreply@github.com>2024-07-23 08:52:04 -0700
commitfd58e508803483f566f446193250a581107d7181 (patch)
treed40f19dcb1f6a1abb662acf632dee06650d3b289 /lldb/source/Commands/CommandObjectTarget.cpp
parentd1e28e2a7bd4642e6a5ec963a5ca2ad2ba1b2b59 (diff)
downloadllvm-fd58e508803483f566f446193250a581107d7181.zip
llvm-fd58e508803483f566f446193250a581107d7181.tar.gz
llvm-fd58e508803483f566f446193250a581107d7181.tar.bz2
[RISCV] Reverse iteration/deletion structure in vsetvli coalescing [NFC] (#98936)
The code previously deferred deleting the vsetvli to avoid invalidating iterators, but eagerly deleted any ADDIs feeding the AVL register operand. This was safe because the iterator was known to point to a non-ADDI instruction (the vsetvli which was the previous user.) This change switches to using an early_inc_range so that we can eagerly delete the vsetvlis, but have to track ADDIs for later deletion. This is purely stylistic, but IMO makes the code easier to follow. It will also simplify a future change to support recursive deletion of trivially dead instructions (i.e. LUI/ADDI pairs.)
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
0 files changed, 0 insertions, 0 deletions