[llvm] r186482 - Make constant string pointer into an array to remove a pointer lookup for every access.
Craig Topper
craig.topper at gmail.com
Tue Jul 16 20:11:33 PDT 2013
Author: ctopper
Date: Tue Jul 16 22:11:32 2013
New Revision: 186482
URL: http://llvm.org/viewvc/llvm-project?rev=186482&view=rev
Log:
Make constant string pointer into an array to remove a pointer lookup for every access.
Modified:
llvm/trunk/lib/CodeGen/RegAllocBase.cpp
llvm/trunk/lib/CodeGen/RegAllocBase.h
Modified: llvm/trunk/lib/CodeGen/RegAllocBase.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocBase.cpp?rev=186482&r1=186481&r2=186482&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocBase.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocBase.cpp Tue Jul 16 22:11:32 2013
@@ -43,7 +43,7 @@ static cl::opt<bool, true>
VerifyRegAlloc("verify-regalloc", cl::location(RegAllocBase::VerifyEnabled),
cl::desc("Verify during register allocation"));
-const char *RegAllocBase::TimerGroupName = "Register Allocation";
+const char RegAllocBase::TimerGroupName[] = "Register Allocation";
bool RegAllocBase::VerifyEnabled = false;
//===----------------------------------------------------------------------===//
Modified: llvm/trunk/lib/CodeGen/RegAllocBase.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocBase.h?rev=186482&r1=186481&r2=186482&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocBase.h (original)
+++ llvm/trunk/lib/CodeGen/RegAllocBase.h Tue Jul 16 22:11:32 2013
@@ -93,7 +93,7 @@ protected:
SmallVectorImpl<LiveInterval*> &splitLVRs) = 0;
// Use this group name for NamedRegionTimer.
- static const char *TimerGroupName;
+ static const char TimerGroupName[];
public:
/// VerifyEnabled - True when -verify-regalloc is given.
More information about the llvm-commits
mailing list