mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
Simplify code. No functionality change.
-3% on ARMDissasembler.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145773 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c00c05f8f5
commit
a86bfc1071
@ -498,8 +498,7 @@ MachineInstr *findLocalKill(unsigned Reg, MachineBasicBlock *MBB,
|
||||
MachineInstr *UseMI = &*UI;
|
||||
if (UseMI == MI || UseMI->getParent() != MBB)
|
||||
continue;
|
||||
DenseMap<MachineInstr*, unsigned>::iterator DI = DistanceMap.find(UseMI);
|
||||
if (DI != DistanceMap.end())
|
||||
if (DistanceMap.count(UseMI))
|
||||
continue;
|
||||
if (!UI.getOperand().isKill())
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user