Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ void SystemZInstPrinterCommon::printPCRelTLSOperand(const MCInst *MI,
// Output the TLS marker if present.
if ((unsigned)OpNum + 1 < MI->getNumOperands()) {
const MCOperand &MO = MI->getOperand(OpNum + 1);
const MCSymbolRefExpr &refExp = cast<MCSymbolRefExpr>(*MO.getExpr());
switch (refExp.getSpecifier()) {
const MCSymbolRefExpr &RefExp = cast<MCSymbolRefExpr>(*MO.getExpr());
switch (RefExp.getSpecifier()) {
case SystemZ::S_TLSGD:
O << ":tls_gdcall:";
break;
Expand All @@ -195,7 +195,7 @@ void SystemZInstPrinterCommon::printPCRelTLSOperand(const MCInst *MI,
default:
llvm_unreachable("Unexpected symbol kind");
}
O << refExp.getSymbol().getName();
O << RefExp.getSymbol().getName();
}
}

Expand Down
7 changes: 3 additions & 4 deletions llvm/lib/Target/SystemZ/SystemZConstantPoolValue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@

using namespace llvm;

SystemZConstantPoolValue::
SystemZConstantPoolValue(const GlobalValue *gv,
SystemZCP::SystemZCPModifier modifier)
: MachineConstantPoolValue(gv->getType()), GV(gv), Modifier(modifier) {}
SystemZConstantPoolValue::SystemZConstantPoolValue(
const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier)
: MachineConstantPoolValue(GV->getType()), GV(GV), Modifier(Modifier) {}

SystemZConstantPoolValue *
SystemZConstantPoolValue::Create(const GlobalValue *GV,
Expand Down
7 changes: 3 additions & 4 deletions llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,9 @@ int SystemZHazardRecognizer::groupingCost(SUnit *SU) const {
// Similarly, a group-ending SU may either fit well (last in group), or
// end the group prematurely.
if (SC->EndGroup) {
unsigned resultingGroupSize =
(CurrGroupSize + getNumDecoderSlots(SU));
if (resultingGroupSize < 3)
return (3 - resultingGroupSize);
unsigned ResultingGroupSize = (CurrGroupSize + getNumDecoderSlots(SU));
if (ResultingGroupSize < 3)
return (3 - ResultingGroupSize);
return -1;
}

Expand Down