mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-23 11:49:50 +00:00
[safestack] Disable stack coloring by default.
Workaround for apparent miscompilation of PR32143. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303456 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fc18e2f236
commit
794ffc40e2
@ -20,9 +20,10 @@ using namespace llvm::safestack;
|
||||
|
||||
#define DEBUG_TYPE "safestackcoloring"
|
||||
|
||||
// Disabled by default due to PR32143.
|
||||
static cl::opt<bool> ClColoring("safe-stack-coloring",
|
||||
cl::desc("enable safe stack coloring"),
|
||||
cl::Hidden, cl::init(true));
|
||||
cl::Hidden, cl::init(false));
|
||||
|
||||
const StackColoring::LiveRange &StackColoring::getLiveRange(AllocaInst *AI) {
|
||||
const auto IT = AllocaNumbering.find(AI);
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -safe-stack -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
|
||||
; RUN: opt -safe-stack -safe-stack-coloring=1 -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
|
||||
|
||||
; %x and %y share a stack slot between them, but not with the stack guard.
|
||||
define void @f() safestack sspreq {
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: opt -safe-stack -S -mtriple=i386-pc-linux-gnu < %s -o - | FileCheck %s
|
||||
; RUN: opt -safe-stack -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
|
||||
; RUN: opt -safe-stack -safe-stack-coloring=1 -S -mtriple=i386-pc-linux-gnu < %s -o - | FileCheck %s
|
||||
; RUN: opt -safe-stack -safe-stack-coloring=1 -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
|
||||
|
||||
define void @f() safestack {
|
||||
entry:
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: opt -safe-stack -S -mtriple=i386-pc-linux-gnu < %s -o - | FileCheck %s
|
||||
; RUN: opt -safe-stack -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
|
||||
; RUN: opt -safe-stack -safe-stack-coloring=1 -S -mtriple=i386-pc-linux-gnu < %s -o - | FileCheck %s
|
||||
; RUN: opt -safe-stack -safe-stack-coloring=1 -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
|
||||
|
||||
; x and y share the stack slot.
|
||||
define void @f() safestack {
|
||||
|
@ -1,5 +1,5 @@
|
||||
; Test that safestack layout reuses a region w/o fragmentation.
|
||||
; RUN: opt -safe-stack -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
|
||||
; RUN: opt -safe-stack -safe-stack-coloring=1 -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
|
||||
|
||||
define void @f() safestack {
|
||||
; CHECK-LABEL: define void @f
|
||||
|
Loading…
Reference in New Issue
Block a user