This repository was archived by the owner on Feb 5, 2019. It is now read-only.
File tree 5 files changed +8
-7
lines changed
test/Transforms/SafeStack/X86
5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,10 @@ using namespace llvm::safestack;
20
20
21
21
#define DEBUG_TYPE " safestackcoloring"
22
22
23
+ // Disabled by default due to PR32143.
23
24
static cl::opt<bool > ClColoring (" safe-stack-coloring" ,
24
25
cl::desc (" enable safe stack coloring" ),
25
- cl::Hidden, cl::init(true ));
26
+ cl::Hidden, cl::init(false ));
26
27
27
28
const StackColoring::LiveRange &StackColoring::getLiveRange (AllocaInst *AI) {
28
29
const auto IT = AllocaNumbering.find (AI);
Original file line number Diff line number Diff line change 1
- ; RUN: opt -safe-stack -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
1
+ ; RUN: opt -safe-stack -safe-stack-coloring=1 - S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
2
2
3
3
; %x and %y share a stack slot between them, but not with the stack guard.
4
4
define void @f () safestack sspreq {
Original file line number Diff line number Diff line change 1
- ; RUN: opt -safe-stack -S -mtriple=i386-pc-linux-gnu < %s -o - | FileCheck %s
2
- ; RUN: opt -safe-stack -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
1
+ ; RUN: opt -safe-stack -safe-stack-coloring=1 - S -mtriple=i386-pc-linux-gnu < %s -o - | FileCheck %s
2
+ ; RUN: opt -safe-stack -safe-stack-coloring=1 - S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
3
3
4
4
define void @f () safestack {
5
5
entry:
Original file line number Diff line number Diff line change 1
- ; RUN: opt -safe-stack -S -mtriple=i386-pc-linux-gnu < %s -o - | FileCheck %s
2
- ; RUN: opt -safe-stack -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
1
+ ; RUN: opt -safe-stack -safe-stack-coloring=1 - S -mtriple=i386-pc-linux-gnu < %s -o - | FileCheck %s
2
+ ; RUN: opt -safe-stack -safe-stack-coloring=1 - S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
3
3
4
4
; x and y share the stack slot.
5
5
define void @f () safestack {
Original file line number Diff line number Diff line change 1
1
; Test that safestack layout reuses a region w/o fragmentation.
2
- ; RUN: opt -safe-stack -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
2
+ ; RUN: opt -safe-stack -safe-stack-coloring=1 - S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
3
3
4
4
define void @f () safestack {
5
5
; CHECK-LABEL: define void @f
You can’t perform that action at this time.
0 commit comments