aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoresmeyi <esme.yi@ibm.com>2022-07-21 01:10:09 -0400
committeresmeyi <esme.yi@ibm.com>2022-07-21 01:10:09 -0400
commit339392ecf25d75fb9b448c38c5bbb48764aa06a4 (patch)
treec0426e5a851e2f4389d1162d7f959d204f74dc4d /llvm/lib/CodeGen
parent[mlir][Linalg] Deprecate `tileAndFuseLinalgOps` method and associated patterns. (diff)
downloadllvm-project-339392ecf25d75fb9b448c38c5bbb48764aa06a4.tar.gz
llvm-project-339392ecf25d75fb9b448c38c5bbb48764aa06a4.tar.bz2
llvm-project-339392ecf25d75fb9b448c38c5bbb48764aa06a4.zip
[AIX] follow-up of D124654.
Emitting the remaining aliases instead of reporting an error to avoid SPEC2017 PEAK failures. And mark this as a TODO.
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 051e5cfeea0f..241af0800dcb 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -3359,9 +3359,12 @@ void AsmPrinter::emitGlobalConstant(const DataLayout &DL, const Constant *CV,
}
if (!AliasList)
return;
- for (const auto &AliasPair : *AliasList)
- report_fatal_error("Aliases with offset " + Twine(AliasPair.first) +
- " were not emitted.");
+ // TODO: These remaining aliases are not emitted in the correct location. Need
+ // to handle the case where the alias offset doesn't refer to any sub-element.
+ for (auto &AliasPair : *AliasList) {
+ for (const GlobalAlias *GA : AliasPair.second)
+ OutStreamer->emitLabel(getSymbol(GA));
+ }
}
void AsmPrinter::emitMachineConstantPoolValue(MachineConstantPoolValue *MCPV) {