Skip to content

Commit 52e22eb

Browse files
allightcopybara-github
authored andcommitted
Automated rollback of commit b179b4c.
PiperOrigin-RevId: 809195763
1 parent b179b4c commit 52e22eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

xls/jit/aot_compiler.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ AotCompiler::CreateTargetMachine() {
9393
};
9494

9595
error_or_target_builder->setRelocationModel(llvm::Reloc::Model::PIC_);
96+
error_or_target_builder->setCodeModel(
97+
error_or_target_builder->getTargetTriple().isAArch64()
98+
? llvm::CodeModel::Large
99+
: llvm::CodeModel::Medium);
100+
96101
// In ahead-of-time compilation we're compiling on machines we are not
97102
// immediately about to run on, where runtime machines may have
98103
// heterogeneous specifications vs the compilation machine. We assume a

0 commit comments

Comments
 (0)