[llvm-commits] [llvm] r129417 - in /llvm/trunk: lib/CodeGen/RegAllocFast.cpp test/CodeGen/ARM/2011-04-12-FastRegAlloc.ll

Eric Christopher echristo at apple.com
Tue Apr 12 17:20:59 PDT 2011


Author: echristo
Date: Tue Apr 12 19:20:59 2011
New Revision: 129417

URL: http://llvm.org/viewvc/llvm-project?rev=129417&view=rev
Log:
Temporarily revert r129408 to see if it brings the bots back.

Removed:
    llvm/trunk/test/CodeGen/ARM/2011-04-12-FastRegAlloc.ll
Modified:
    llvm/trunk/lib/CodeGen/RegAllocFast.cpp

Modified: llvm/trunk/lib/CodeGen/RegAllocFast.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocFast.cpp?rev=129417&r1=129416&r2=129417&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocFast.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocFast.cpp Tue Apr 12 19:20:59 2011
@@ -442,6 +442,8 @@
   unsigned Cost = 0;
   for (const unsigned *AS = TRI->getAliasSet(PhysReg);
        unsigned Alias = *AS; ++AS) {
+    if (UsedInInstr.test(Alias))
+      return spillImpossible;
     switch (unsigned VirtReg = PhysRegState[Alias]) {
     case regDisabled:
       break;

Removed: llvm/trunk/test/CodeGen/ARM/2011-04-12-FastRegAlloc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/2011-04-12-FastRegAlloc.ll?rev=129416&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/2011-04-12-FastRegAlloc.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/2011-04-12-FastRegAlloc.ll (removed)
@@ -1,15 +0,0 @@
-; RUN: llc < %s -O0 -verify-machineinstrs -regalloc=fast
-; Previously we'd crash as out of registers on this input by clobbering all of
-; the aliases.
-target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:64-v128:32:128-a0:0:32-n32"
-target triple = "thumbv7-apple-darwin10.0.0"
-
-define void @_Z8TestCasev() nounwind ssp {
-entry:
-  %a = alloca float, align 4
-  %tmp = load float* %a, align 4
-  call void asm sideeffect "", "w,~{s0},~{s16}"(float %tmp) nounwind, !srcloc !0
-  ret void
-}
-
-!0 = metadata !{i32 109}





More information about the llvm-commits mailing list