// Is the first "VariableLiveRange" or the previous one has been closed so its "m_EndEmitLocation" is valid
noway_assert(m_VariableLiveRanges->empty() || m_VariableLiveRanges->back().m_EndEmitLocation.Valid());
- if (!m_VariableLiveRanges->empty() &&
- m_VariableLiveRanges->back().m_EndEmitLocation.IsPreviousIns(emit) &&
+ if (!m_VariableLiveRanges->empty() && m_VariableLiveRanges->back().m_EndEmitLocation.IsPreviousIns(emit) &&
siVarLoc::Equals(&varLocation, &(m_VariableLiveRanges->back().m_VarLocation)))
{
// The variable is being born at the exactly same place just one assembly instructtion.
m_VariableLiveRanges->emplace_back(varLocation, emitLocation(), emitLocation());
m_VariableLiveRanges->back().m_StartEmitLocation.CaptureLocation(emit);
}
-
+
#ifdef DEBUG
if (!m_VariableLifeBarrier->hasLiveRangesToDump())
{
bool emitLocation::IsPreviousIns(const emitter* emit) const
{
assert(Valid());
- bool sameGroup = ig == emit->emitCurIG;
+ bool sameGroup = ig == emit->emitCurIG;
bool sameInsNum = emitGetInsNumFromCodePos(codePos) == emitGetInsNumFromCodePos(emit->emitCurOffset()) - 1;
return sameGroup && sameInsNum;
}