[llvm] r304036 - LivePhysRegs: Add default for removeRegsInMask(Clobbers); NFC
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Fri May 26 14:50:51 PDT 2017
Author: matze
Date: Fri May 26 16:50:51 2017
New Revision: 304036
URL: http://llvm.org/viewvc/llvm-project?rev=304036&view=rev
Log:
LivePhysRegs: Add default for removeRegsInMask(Clobbers); NFC
Modified:
llvm/trunk/include/llvm/CodeGen/LivePhysRegs.h
llvm/trunk/lib/CodeGen/LivePhysRegs.cpp
Modified: llvm/trunk/include/llvm/CodeGen/LivePhysRegs.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LivePhysRegs.h?rev=304036&r1=304035&r2=304036&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LivePhysRegs.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LivePhysRegs.h Fri May 26 16:50:51 2017
@@ -95,7 +95,8 @@ public:
/// \brief Removes physical registers clobbered by the regmask operand @p MO.
void removeRegsInMask(const MachineOperand &MO,
- SmallVectorImpl<std::pair<unsigned, const MachineOperand*>> *Clobbers);
+ SmallVectorImpl<std::pair<unsigned, const MachineOperand*>> *Clobbers =
+ nullptr);
/// \brief Returns true if register @p Reg is contained in the set. This also
/// works if only the super register of @p Reg has been defined, because
Modified: llvm/trunk/lib/CodeGen/LivePhysRegs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LivePhysRegs.cpp?rev=304036&r1=304035&r2=304036&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LivePhysRegs.cpp (original)
+++ llvm/trunk/lib/CodeGen/LivePhysRegs.cpp Fri May 26 16:50:51 2017
@@ -53,7 +53,7 @@ void LivePhysRegs::stepBackward(const Ma
continue;
removeReg(Reg);
} else if (O->isRegMask())
- removeRegsInMask(*O, nullptr);
+ removeRegsInMask(*O);
}
// Add uses to the set.
More information about the llvm-commits
mailing list