Don't warn about a null live range if the Value is a ConstantIntegral.
authorBrian Gaeke <gaeke@uiuc.edu>
Mon, 29 Mar 2004 21:58:41 +0000 (21:58 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Mon, 29 Mar 2004 21:58:41 +0000 (21:58 +0000)
Otherwise, if you're in debugging mode, you get warnings for (apparently)
every immediate constant in the function during reg. allocation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12538 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp

index 15243311764eb142d61c16474a81fa23c08eddbe..51a6f8b89e5e30ba43f915465a08a7142b945633 100644 (file)
@@ -98,7 +98,7 @@ void PhyRegAlloc::createIGNodeListsAndIGs() {
     if (HMI->first) { 
       LiveRange *L = HMI->second;   // get the LiveRange
       if (!L) { 
-        if (DEBUG_RA)
+        if (DEBUG_RA && !isa<ConstantIntegral> (HMI->first))
           std::cerr << "\n**** ?!?WARNING: NULL LIVE RANGE FOUND FOR: "
                << RAV(HMI->first) << "****\n";
         continue;