summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJunmo Park <junmoz.park@samsung.com>2016-02-26 02:07:36 +0000
committerJunmo Park <junmoz.park@samsung.com>2016-02-26 02:07:36 +0000
commit820e39260191bcb70c31fee3643f8ef0f2452b20 (patch)
treefc34317a326e75ccbb37c07520d01276cfbb2983 /llvm/lib/CodeGen
parent374651d9aaa9eab5022993f2685af4f069a0f253 (diff)
downloadbcm5719-llvm-820e39260191bcb70c31fee3643f8ef0f2452b20.tar.gz
bcm5719-llvm-820e39260191bcb70c31fee3643f8ef0f2452b20.zip
Minor code cleanups. NFC.
llvm-svn: 261955
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 2d685ebc527..b1bab6d7302 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -882,7 +882,7 @@ void MachineInstr::addMemOperand(MachineFunction &MF,
}
/// Check to see if the MMOs pointed to by the two MemRefs arrays are
-/// identical.
+/// identical.
static bool hasIdenticalMMOs(const MachineInstr &MI1, const MachineInstr &MI2) {
auto I1 = MI1.memoperands_begin(), E1 = MI1.memoperands_end();
auto I2 = MI2.memoperands_begin(), E2 = MI2.memoperands_end();
@@ -909,7 +909,7 @@ MachineInstr::mergeMemRefsWith(const MachineInstr& Other) {
// cases in practice.
if (hasIdenticalMMOs(*this, Other))
return std::make_pair(MemRefs, NumMemRefs);
-
+
// TODO: consider uniquing elements within the operand lists to reduce
// space usage and fall back to conservative information less often.
size_t CombinedNumMemRefs = NumMemRefs + Other.NumMemRefs;
@@ -928,7 +928,7 @@ MachineInstr::mergeMemRefsWith(const MachineInstr& Other) {
MemEnd);
assert(MemEnd - MemBegin == (ptrdiff_t)CombinedNumMemRefs &&
"missing memrefs");
-
+
return std::make_pair(MemBegin, CombinedNumMemRefs);
}
OpenPOWER on IntegriCloud