[llvm-branch-commits] [llvm-branch] r195868 - Merging r195574:

Bill Wendling isanbard at gmail.com
Wed Nov 27 11:40:05 PST 2013


Author: void
Date: Wed Nov 27 13:40:05 2013
New Revision: 195868

URL: http://llvm.org/viewvc/llvm-project?rev=195868&view=rev
Log:
Merging r195574:
------------------------------------------------------------------------
r195574 | venkatra | 2013-11-24 10:41:49 -0800 (Sun, 24 Nov 2013) | 2 lines

[SparcV9]: Do not emit .register directives for global registers that are clobbered by calls but not used in the function itself.

------------------------------------------------------------------------

Modified:
    llvm/branches/release_34/   (props changed)
    llvm/branches/release_34/lib/Target/Sparc/SparcAsmPrinter.cpp
    llvm/branches/release_34/test/CodeGen/SPARC/64abi.ll

Propchange: llvm/branches/release_34/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Wed Nov 27 13:40:05 2013
@@ -1,3 +1,3 @@
 /llvm/branches/Apple/Pertwee:110850,110961
 /llvm/branches/type-system-rewrite:133420-134817
-/llvm/trunk:155241,195092-195094,195100,195102-195103,195118,195129,195136,195138,195148,195152,195156-195157,195161-195162,195193,195272,195317-195318,195327,195330,195333,195339,195343,195355,195364,195379,195397-195399,195408,195421,195423-195424,195432,195439,195444,195455-195456,195469,195476-195477,195479,195491-195493,195514,195528,195547,195567,195573,195591,195599,195632,195635-195636,195670,195679,195682,195684,195713,195716,195769,195773,195779,195791,195798
+/llvm/trunk:155241,195092-195094,195100,195102-195103,195118,195129,195136,195138,195148,195152,195156-195157,195161-195162,195193,195272,195317-195318,195327,195330,195333,195339,195343,195355,195364,195379,195397-195399,195408,195421,195423-195424,195432,195439,195444,195455-195456,195469,195476-195477,195479,195491-195493,195514,195528,195547,195567,195573-195574,195591,195599,195632,195635-195636,195670,195679,195682,195684,195713,195716,195769,195773,195779,195791,195798

Modified: llvm/branches/release_34/lib/Target/Sparc/SparcAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_34/lib/Target/Sparc/SparcAsmPrinter.cpp?rev=195868&r1=195867&r2=195868&view=diff
==============================================================================
--- llvm/branches/release_34/lib/Target/Sparc/SparcAsmPrinter.cpp (original)
+++ llvm/branches/release_34/lib/Target/Sparc/SparcAsmPrinter.cpp Wed Nov 27 13:40:05 2013
@@ -88,7 +88,7 @@ void SparcAsmPrinter::EmitFunctionBodySt
   const unsigned globalRegs[] = { SP::G2, SP::G3, SP::G6, SP::G7, 0 };
   for (unsigned i = 0; globalRegs[i] != 0; ++i) {
     unsigned reg = globalRegs[i];
-    if (!MRI.isPhysRegUsed(reg))
+    if (MRI.use_empty(reg))
       continue;
     EmitGlobalRegisterDecl(reg);
   }

Modified: llvm/branches/release_34/test/CodeGen/SPARC/64abi.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_34/test/CodeGen/SPARC/64abi.ll?rev=195868&r1=195867&r2=195868&view=diff
==============================================================================
--- llvm/branches/release_34/test/CodeGen/SPARC/64abi.ll (original)
+++ llvm/branches/release_34/test/CodeGen/SPARC/64abi.ll Wed Nov 27 13:40:05 2013
@@ -380,8 +380,6 @@ define signext i32 @ret_nozext(i32 signe
 ; CHECK-LABEL: test_register_directive
 ; CHECK:       .register %g2, #scratch
 ; CHECK:       .register %g3, #scratch
-; CHECK:       .register %g6, #ignore
-; CHECK:       .register %g7, #ignore
 ; CHECK:       add %i0, 2, %g2
 ; CHECK:       add %i0, 3, %g3
 define i32 @test_register_directive(i32 %i0) {





More information about the llvm-branch-commits mailing list