[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Jul 27 21:42:22 PDT 2005



Changes in directory llvm/lib/Target/PowerPC:

PPC32ISelPattern.cpp updated: 1.107 -> 1.108
---
Log message:

Specify the correct number of operands


---
Diffs of the changes:  (+3 -3)

 PPC32ISelPattern.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.107 llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.108
--- llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.107	Wed Jul 27 22:02:05 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp	Wed Jul 27 23:42:11 2005
@@ -1385,7 +1385,7 @@
       BuildMI(BB, PPC::ADDIS, 2, Tmp1).addReg(getGlobalBaseReg())
         .addGlobalAddress(GV);
     else
-      BuildMI(BB, PPC::LIS, 2, Tmp1).addGlobalAddress(GV);
+      BuildMI(BB, PPC::LIS, 1, Tmp1).addGlobalAddress(GV);
     if (GV->hasWeakLinkage() || GV->isExternal()) {
       BuildMI(BB, PPC::LWZ, 2, Result).addGlobalAddress(GV).addReg(Tmp1);
     } else {
@@ -1441,7 +1441,7 @@
         BuildMI(BB, PPC::ADDIS, 2, Tmp1).addReg(getGlobalBaseReg())
           .addGlobalAddress(GV);
       else
-        BuildMI(BB, PPC::LIS, 2, Tmp1).addGlobalAddress(GV);
+        BuildMI(BB, PPC::LIS, 1, Tmp1).addGlobalAddress(GV);
       if (GV->hasWeakLinkage() || GV->isExternal()) {
         Tmp2 = MakeReg(MVT::i32);
         BuildMI(BB, PPC::LWZ, 2, Tmp2).addGlobalAddress(GV).addReg(Tmp1);
@@ -2499,7 +2499,7 @@
         BuildMI(BB, PPC::ADDIS, 2, Tmp2).addReg(getGlobalBaseReg())
           .addGlobalAddress(GV);
       else
-        BuildMI(BB, PPC::LIS, 2, Tmp2).addGlobalAddress(GV);
+        BuildMI(BB, PPC::LIS, 1, Tmp2).addGlobalAddress(GV);
       if (GV->hasWeakLinkage() || GV->isExternal()) {
         Tmp3 = MakeReg(MVT::i32);
         BuildMI(BB, PPC::LWZ, 2, Tmp3).addGlobalAddress(GV).addReg(Tmp2);






More information about the llvm-commits mailing list