Skip to content

Commit 0752c4a

Browse files
committed
Rollup merge of 21671 - akiss77:pr-aarch64-fastisel0, r=alexcrichton
2 parents f553f58 + ea50bf8 commit 0752c4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc_trans/back/write.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,9 @@ unsafe fn configure_llvm(sess: &Session) {
10121012
if sess.time_llvm_passes() { add("-time-passes"); }
10131013
if sess.print_llvm_passes() { add("-debug-pass=Structure"); }
10141014

1015+
// FIXME #21627 disable faulty FastISel on AArch64 (even for -O0)
1016+
if sess.target.target.arch.as_slice() == "aarch64" { add("-fast-isel=0"); }
1017+
10151018
for arg in sess.opts.cg.llvm_args.iter() {
10161019
add(&(*arg)[]);
10171020
}

0 commit comments

Comments
 (0)