diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-07-10 16:38:35 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-07-10 16:38:35 +0000 |
commit | 5fa2ba2769d31815f54ebf1af42f868f1486e4d0 (patch) | |
tree | 6244add58822a84ce79063af3a8e65b511a41580 | |
parent | a3e39dc7055486cbf514ccd868cfabc69d7f6f4e (diff) | |
download | external_llvm-5fa2ba2769d31815f54ebf1af42f868f1486e4d0.zip external_llvm-5fa2ba2769d31815f54ebf1af42f868f1486e4d0.tar.gz external_llvm-5fa2ba2769d31815f54ebf1af42f868f1486e4d0.tar.bz2 |
Simplify code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186013 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMLoadStoreOptimizer.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp index 6d05ad2..0f83cdc 100644 --- a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp +++ b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp @@ -1858,9 +1858,7 @@ ARMPreAllocLoadStoreOpt::RescheduleLoadStoreInstrs(MachineBasicBlock *MBB) { if (!StopHere) BI->second.push_back(MI); } else { - SmallVector<MachineInstr*, 4> MIs; - MIs.push_back(MI); - Base2LdsMap[Base] = MIs; + Base2LdsMap[Base].push_back(MI); LdBases.push_back(Base); } } else { @@ -1876,9 +1874,7 @@ ARMPreAllocLoadStoreOpt::RescheduleLoadStoreInstrs(MachineBasicBlock *MBB) { if (!StopHere) BI->second.push_back(MI); } else { - SmallVector<MachineInstr*, 4> MIs; - MIs.push_back(MI); - Base2StsMap[Base] = MIs; + Base2StsMap[Base].push_back(MI); StBases.push_back(Base); } } |