Skip to content

Commit a9d0ab2

Browse files
Re-apply "[AArch64] Enable "sink-and-fold" in MachineSink by default (#67432)"
This re-applies commit ace20e2, which was reverted in eff4ef2. The issues were fixed in: * b30765c [AArch64] Fix an incorrect handling of debug values in MachineSink (#68107) * b454b04 [AArch64] Fix a compiler crash in MachineSink (#67705)
1 parent f74aaca commit a9d0ab2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Target/AArch64/AArch64TargetMachine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static cl::opt<bool> EnableGISelLoadStoreOptPostLegal(
200200
static cl::opt<bool>
201201
EnableSinkFold("aarch64-enable-sink-fold",
202202
cl::desc("Enable sinking and folding of instruction copies"),
203-
cl::init(false), cl::Hidden);
203+
cl::init(true), cl::Hidden);
204204

205205
extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAArch64Target() {
206206
// Register the target.

llvm/test/CodeGen/AArch64/sink-and-fold.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc -aarch64-enable-sink-fold=true < %s | FileCheck %s
2+
; RUN: llc < %s | FileCheck %s
33
target triple = "aarch64-linux"
44

55
declare i32 @use(...)

0 commit comments

Comments
 (0)