[llvm] r261955 - Minor code cleanups. NFC.
Junmo Park via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 25 18:07:37 PST 2016
Author: flyingforyou
Date: Thu Feb 25 20:07:36 2016
New Revision: 261955
URL: http://llvm.org/viewvc/llvm-project?rev=261955&view=rev
Log:
Minor code cleanups. NFC.
Modified:
llvm/trunk/lib/CodeGen/MachineInstr.cpp
Modified: llvm/trunk/lib/CodeGen/MachineInstr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineInstr.cpp?rev=261955&r1=261954&r2=261955&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineInstr.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineInstr.cpp Thu Feb 25 20:07:36 2016
@@ -882,7 +882,7 @@ void MachineInstr::addMemOperand(Machine
}
/// 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 Mac
// 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 Mac
MemEnd);
assert(MemEnd - MemBegin == (ptrdiff_t)CombinedNumMemRefs &&
"missing memrefs");
-
+
return std::make_pair(MemBegin, CombinedNumMemRefs);
}
More information about the llvm-commits
mailing list