mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
[BasicAA] Enable -basic-aa-recphi by default
This option was added a while back, to help improve AA around pointer phi loops. It looks for phi(gep(phi, const), x) loops, checking if x can then prove more precise aliasing info. Differential Revision: https://reviews.llvm.org/D82998
This commit is contained in:
parent
dd9c024d3b
commit
061ec94c71
@ -66,7 +66,7 @@ using namespace llvm;
|
||||
|
||||
/// Enable analysis of recursive PHI nodes.
|
||||
static cl::opt<bool> EnableRecPhiAnalysis("basic-aa-recphi", cl::Hidden,
|
||||
cl::init(false));
|
||||
cl::init(true));
|
||||
|
||||
/// By default, even on 32-bit architectures we use 64-bit integers for
|
||||
/// calculations. This will allow us to more-aggressively decompose indexing
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -basic-aa -basic-aa-recphi=1 -gvn -S | FileCheck %s
|
||||
; RUN: opt < %s -basic-aa -gvn -S | FileCheck %s
|
||||
;
|
||||
; Check that section->word_ofs doesn't get reloaded in every iteration of the
|
||||
; for loop.
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -basic-aa -aa-eval -print-all-alias-modref-info -basic-aa-recphi -disable-output 2>&1 | FileCheck %s
|
||||
; RUN: opt < %s -basic-aa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
|
||||
|
||||
; CHECK-LABEL: Function: simple: 5 pointers, 0 call sites
|
||||
; CHECK: NoAlias: float* %src1, float* %src2
|
||||
|
Loading…
Reference in New Issue
Block a user