[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
Chris Lattner
lattner at persephone.cs.uiuc.edu
Mon Nov 22 22:06:09 PST 2004
Changes in directory llvm/lib/Target/PowerPC:
PPC32ISelSimple.cpp updated: 1.109 -> 1.110
---
Log message:
Simplify code a bit
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp:1.109 llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp:1.110
--- llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp:1.109 Mon Nov 22 23:54:25 2004
+++ llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp Tue Nov 23 00:05:44 2004
@@ -703,7 +703,7 @@
BuildMI(*MBB, IP, PPC::LOADHiAddr, 2, TmpReg)
.addReg(getGlobalBaseReg(MBB, IP)).addGlobalAddress(GV);
- if (GV->hasWeakLinkage() || GV->isExternal() || dyn_cast<Function>(GV)) {
+ if (GV->hasWeakLinkage() || GV->isExternal() || isa<Function>(GV)) {
BuildMI(*MBB, IP, PPC::LWZ, 2, R).addGlobalAddress(GV).addReg(TmpReg);
} else {
BuildMI(*MBB, IP, PPC::LA, 2, R).addReg(TmpReg).addGlobalAddress(GV);
More information about the llvm-commits
mailing list