From 5a7723c7a2d5b7d67125f008d7d41b3e4d145f99 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Fri, 8 Apr 2016 15:17:43 +0000 Subject: Revert r265547 "Recommit r265309 after fixed an invalid memory reference bug happened" It caused PR27275: "ARM: Bad machine code: Using an undefined physical register" Also reverting the following commits that were landed on top: r265610 "Fix the compare-clang diff error introduced by r265547." r265639 "Fix the sanitizer bootstrap error in r265547." r265657 "InlineSpiller.cpp: Escap \@ in r265547. [-Wdocumentation]" llvm-svn: 265790 --- llvm/lib/CodeGen/RegAllocBase.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'llvm/lib/CodeGen/RegAllocBase.h') diff --git a/llvm/lib/CodeGen/RegAllocBase.h b/llvm/lib/CodeGen/RegAllocBase.h index 296ffe8692c..659b8f505a2 100644 --- a/llvm/lib/CodeGen/RegAllocBase.h +++ b/llvm/lib/CodeGen/RegAllocBase.h @@ -65,12 +65,6 @@ protected: LiveRegMatrix *Matrix; RegisterClassInfo RegClassInfo; - /// Inst which is a def of an original reg and whose defs are already all - /// dead after remat is saved in DeadRemats. The deletion of such inst is - /// postponed till all the allocations are done, so its remat expr is - /// always available for the remat of all the siblings of the original reg. - SmallPtrSet DeadRemats; - RegAllocBase() : TRI(nullptr), MRI(nullptr), VRM(nullptr), LIS(nullptr), Matrix(nullptr) {} @@ -83,10 +77,6 @@ protected: // physical register assignments. void allocatePhysRegs(); - // Include spiller post optimization and removing dead defs left because of - // rematerialization. - virtual void postOptimization(); - // Get a temporary reference to a Spiller instance. virtual Spiller &spiller() = 0; -- cgit v1.2.3