Skip to content

Commit ec9be2d

Browse files
committed
moire test
Created using spr 1.3.7
1 parent 2b8b38a commit ec9be2d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

llvm/lib/Passes/PassBuilder.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,12 +1604,6 @@ parseBoundsCheckingOptions(StringRef Params) {
16041604
/*MayReturn=*/true,
16051605
/*HandlerPreserveAllRegs=*/false,
16061606
};
1607-
} else if (ParamName == "min-rt-handler-preserve-all-regs") {
1608-
Options.Rt = {
1609-
/*MinRuntime=*/true,
1610-
/*MayReturn=*/true,
1611-
/*HandlerPreserveAllRegs=*/true,
1612-
};
16131607
} else if (ParamName == "min-rt-abort") {
16141608
Options.Rt = {
16151609
/*MinRuntime=*/true,
@@ -1618,6 +1612,9 @@ parseBoundsCheckingOptions(StringRef Params) {
16181612
};
16191613
} else if (ParamName == "merge") {
16201614
Options.Merge = true;
1615+
} else if (ParamName == "handler-preserve-all-regs") {
1616+
if (Options.Rt)
1617+
Options.Rt->HandlerPreserveAllRegs = true;
16211618
} else {
16221619
StringRef ParamEQ;
16231620
StringRef Val;

llvm/test/Instrumentation/BoundsChecking/runtimes.ll

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
; RUN: opt < %s -passes='bounds-checking<rt-abort>' -S | FileCheck %s --check-prefixes=RTABORT-NOMERGE
99
; RUN: opt < %s -passes='bounds-checking<min-rt>' -S | FileCheck %s --check-prefixes=MINRT-NOMERGE
1010
; RUN: opt < %s -passes='bounds-checking<min-rt-abort>' -S | FileCheck %s --check-prefixes=MINRTABORT-NOMERGE
11-
; RUN: opt < %s -passes='bounds-checking<min-rt-handler-preserve-all-regs>' -S | FileCheck %s --check-prefixes=MINRT-PRESERVE-NOMERGE
11+
12+
; RUN: opt < %s -passes='bounds-checking<trap;handler-preserve-all-regs>' -S | FileCheck %s --check-prefixes=TR-NOMERGE
13+
; RUN: opt < %s -passes='bounds-checking<rt;handler-preserve-all-regs>' -S | FileCheck %s --check-prefixes=RT-NOMERGE
14+
; RUN: opt < %s -passes='bounds-checking<rt-abort;handler-preserve-all-regs>' -S | FileCheck %s --check-prefixes=RTABORT-NOMERGE
15+
; RUN: opt < %s -passes='bounds-checking<min-rt;handler-preserve-all-regs>' -S | FileCheck %s --check-prefixes=MINRT-PRESERVE-NOMERGE
16+
; RUN: opt < %s -passes='bounds-checking<min-rt-abort;handler-preserve-all-regs>' -S | FileCheck %s --check-prefixes=MINRTABORT-NOMERGE
1217
;
1318
; RUN: opt < %s -passes='bounds-checking<trap;guard=3>' -S | FileCheck %s --check-prefixes=TR-GUARD-COMMON,TR-GUARD-THREE
1419
; RUN: opt < %s -passes='bounds-checking<trap;guard=13>' -S | FileCheck %s --check-prefixes=TR-GUARD-COMMON,TR-GUARD-THIRTEEN

0 commit comments

Comments
 (0)