[llvm] r328043 - [ReachingDefAnalysis] Fix what I assume to be a typo ReachingDedDefaultVal->ReachingDefDefaultVal.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 20 13:53:21 PDT 2018
Author: ctopper
Date: Tue Mar 20 13:53:21 2018
New Revision: 328043
URL: http://llvm.org/viewvc/llvm-project?rev=328043&view=rev
Log:
[ReachingDefAnalysis] Fix what I assume to be a typo ReachingDedDefaultVal->ReachingDefDefaultVal.
Unless Ded has some many I don't know about.
Modified:
llvm/trunk/include/llvm/CodeGen/ReachingDefAnalysis.h
llvm/trunk/lib/CodeGen/ReachingDefAnalysis.cpp
Modified: llvm/trunk/include/llvm/CodeGen/ReachingDefAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/ReachingDefAnalysis.h?rev=328043&r1=328042&r2=328043&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/ReachingDefAnalysis.h (original)
+++ llvm/trunk/include/llvm/CodeGen/ReachingDefAnalysis.h Tue Mar 20 13:53:21 2018
@@ -68,7 +68,7 @@ private:
MBBReachingDefsInfo MBBReachingDefs;
/// Default values are 'nothing happened a long time ago'.
- const int ReachingDedDefaultVal = -(1 << 20);
+ const int ReachingDefDefaultVal = -(1 << 20);
public:
static char ID; // Pass identification, replacement for typeid
Modified: llvm/trunk/lib/CodeGen/ReachingDefAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ReachingDefAnalysis.cpp?rev=328043&r1=328042&r2=328043&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ReachingDefAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/ReachingDefAnalysis.cpp Tue Mar 20 13:53:21 2018
@@ -34,7 +34,7 @@ void ReachingDefAnalysis::enterBasicBloc
// Set up LiveRegs to represent registers entering MBB.
// Default values are 'nothing happened a long time ago'.
if (LiveRegs.empty())
- LiveRegs.assign(NumRegUnits, ReachingDedDefaultVal);
+ LiveRegs.assign(NumRegUnits, ReachingDefDefaultVal);
// This is the entry block.
if (MBB->pred_empty()) {
@@ -64,7 +64,7 @@ void ReachingDefAnalysis::enterBasicBloc
for (unsigned Unit = 0; Unit != NumRegUnits; ++Unit) {
// Use the most recent predecessor def for each register.
LiveRegs[Unit] = std::max(LiveRegs[Unit], Incoming[Unit]);
- if ((LiveRegs[Unit] != ReachingDedDefaultVal))
+ if ((LiveRegs[Unit] != ReachingDefDefaultVal))
MBBReachingDefs[MBBNumber][Unit].push_back(LiveRegs[Unit]);
}
}
@@ -173,11 +173,11 @@ void ReachingDefAnalysis::releaseMemory(
int ReachingDefAnalysis::getReachingDef(MachineInstr *MI, int PhysReg) {
assert(InstIds.count(MI) && "Unexpected machine instuction.");
int InstId = InstIds[MI];
- int DefRes = ReachingDedDefaultVal;
+ int DefRes = ReachingDefDefaultVal;
unsigned MBBNumber = MI->getParent()->getNumber();
assert(MBBNumber < MBBReachingDefs.size() &&
"Unexpected basic block number.");
- int LatestDef = ReachingDedDefaultVal;
+ int LatestDef = ReachingDefDefaultVal;
for (MCRegUnitIterator Unit(PhysReg, TRI); Unit.isValid(); ++Unit) {
for (int Def : MBBReachingDefs[MBBNumber][*Unit]) {
if (Def >= InstId)
More information about the llvm-commits
mailing list