diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/CodeGen/MachineSSAUpdater.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/CodeGen/MachineSSAUpdater.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/contrib/llvm-project/llvm/lib/CodeGen/MachineSSAUpdater.cpp b/contrib/llvm-project/llvm/lib/CodeGen/MachineSSAUpdater.cpp index b12557d6d326..462082df5d05 100644 --- a/contrib/llvm-project/llvm/lib/CodeGen/MachineSSAUpdater.cpp +++ b/contrib/llvm-project/llvm/lib/CodeGen/MachineSSAUpdater.cpp @@ -50,15 +50,18 @@ MachineSSAUpdater::~MachineSSAUpdater() { } /// Initialize - Reset this object to get ready for a new set of SSA -/// updates. ProtoValue is the value used to name PHI nodes. -void MachineSSAUpdater::Initialize(Register V) { +/// updates. +void MachineSSAUpdater::Initialize(const TargetRegisterClass *RC) { if (!AV) AV = new AvailableValsTy(); else getAvailableVals(AV).clear(); - VR = V; - VRC = MRI->getRegClass(VR); + VRC = RC; +} + +void MachineSSAUpdater::Initialize(Register V) { + Initialize(MRI->getRegClass(V)); } /// HasValueForBlock - Return true if the MachineSSAUpdater already has a value for |