summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PIC16/PIC16MemSelOpt.cpp
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-10-24 18:19:41 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-10-24 18:19:41 +0000
commit9e8d42f295dcb1bba9e60432acb96e3658cee22d (patch)
tree56c380721987f01d433438c654b4c01981f86696 /llvm/lib/Target/PIC16/PIC16MemSelOpt.cpp
parent84f0f776e97a1e1bc359f8fc655f150a02364bc7 (diff)
downloadbcm5719-llvm-9e8d42f295dcb1bba9e60432acb96e3658cee22d.tar.gz
bcm5719-llvm-9e8d42f295dcb1bba9e60432acb96e3658cee22d.zip
Revert back 85006 for now as it breaks PIC16 tests.
llvm-svn: 85008
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16MemSelOpt.cpp')
-rw-r--r--llvm/lib/Target/PIC16/PIC16MemSelOpt.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16MemSelOpt.cpp b/llvm/lib/Target/PIC16/PIC16MemSelOpt.cpp
index 93ccdd24918..a97dc35b137 100644
--- a/llvm/lib/Target/PIC16/PIC16MemSelOpt.cpp
+++ b/llvm/lib/Target/PIC16/PIC16MemSelOpt.cpp
@@ -144,7 +144,7 @@ bool MemSelOpt::processInstruction(MachineInstr *MI) {
}
// Get the section name(NewBank) for MemOp.
- // This assumes that the section names for globals are already set by
+ // This assumes that the section names for globals are laready set by
// AsmPrinter->doInitialization.
std::string NewBank = CurBank;
if (Op.getType() == MachineOperand::MO_GlobalAddress &&
@@ -156,11 +156,7 @@ bool MemSelOpt::processInstruction(MachineInstr *MI) {
std::string Sym = Op.getSymbolName();
NewBank = PAN::getSectionNameForSym(Sym);
}
-
- // If the section is shared section, do not emit banksel.
- if (NewBank == PAN::getSharedUDataSectionName())
- return Changed;
-
+
// If the previous and new section names are same, we don't need to
// emit banksel.
if (NewBank.compare(CurBank) != 0 ) {
OpenPOWER on IntegriCloud