[llvm] r220335 - Pacify bots and simplify r220321
Arnaud A. de Grandmaison
arnaud.degrandmaison at arm.com
Tue Oct 21 14:50:49 PDT 2014
Author: aadg
Date: Tue Oct 21 16:50:49 2014
New Revision: 220335
URL: http://llvm.org/viewvc/llvm-project?rev=220335&view=rev
Log:
Pacify bots and simplify r220321
Modified:
llvm/trunk/lib/CodeGen/Passes.cpp
Modified: llvm/trunk/lib/CodeGen/Passes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/Passes.cpp?rev=220335&r1=220334&r2=220335&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/Passes.cpp (original)
+++ llvm/trunk/lib/CodeGen/Passes.cpp Tue Oct 21 16:50:49 2014
@@ -693,7 +693,7 @@ FunctionPass *TargetPassConfig::createRe
/// Return true if the default global register allocator is in use and
/// has not be overriden on the command line with '-regalloc=...'
bool TargetPassConfig::usingDefaultRegAlloc() const {
- return RegAlloc == &useDefaultRegisterAllocator;
+ return RegAlloc.getNumOccurrences() == 0;
}
/// Add the minimum set of target-independent passes that are required for
More information about the llvm-commits
mailing list