mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-21 01:06:46 +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…
x
Reference in New Issue
Block a user