aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2022-03-25 11:34:31 -0700
committerPhilip Reames <listmail@philipreames.com>2022-03-25 12:01:52 -0700
commitf80aaa675f93e01efbb6a814c1ec5c52b25ab4b5 (patch)
treed1bdf2e6959d88e114fc4a2a631c007ebf5f6f32 /llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
parenta78bd832648a8a3d1f0db8a7cf2b830f059e760c (diff)
downloadllvm-f80aaa675f93e01efbb6a814c1ec5c52b25ab4b5.zip
llvm-f80aaa675f93e01efbb6a814c1ec5c52b25ab4b5.tar.gz
llvm-f80aaa675f93e01efbb6a814c1ec5c52b25ab4b5.tar.bz2
[SLP] Simplify eraseInstruction [NFC]
This simplifies the implementation of eraseInstruction by moving the odd-replace-users-with-undef handling back to the only caller which uses it. This handling was not obviously correct, so add the asserts which make it clear why this is safe to do at all. The result is simpler code and stronger assertions.
Diffstat (limited to 'llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions