diff options
author | Duncan Sands <baldrick@free.fr> | 2007-11-23 19:30:27 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-11-23 19:30:27 +0000 |
commit | e4dc717585d5b891d187248352cbbc8d2438da96 (patch) | |
tree | d4334227cc13a82e2ae1f1cb6a4b834f96b0c3f6 /test/Analysis/GlobalsModRef | |
parent | bb65098d2c8c08e1c45d5567c07f492e2a770aff (diff) | |
download | llvm-e4dc717585d5b891d187248352cbbc8d2438da96.tar.gz llvm-e4dc717585d5b891d187248352cbbc8d2438da96.tar.bz2 llvm-e4dc717585d5b891d187248352cbbc8d2438da96.tar.xz |
Ding dong, the DoesntAccessMemoryFns and
OnlyReadsMemoryFns tables are dead! We
get more, and more accurate, information
from gcc via the readnone and readonly
function attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/GlobalsModRef')
-rw-r--r-- | test/Analysis/GlobalsModRef/chaining-analysis.ll | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/Analysis/GlobalsModRef/chaining-analysis.ll b/test/Analysis/GlobalsModRef/chaining-analysis.ll index 49244563c0..e521cc1350 100644 --- a/test/Analysis/GlobalsModRef/chaining-analysis.ll +++ b/test/Analysis/GlobalsModRef/chaining-analysis.ll @@ -1,20 +1,20 @@ -; RUN: llvm-upgrade < %s | llvm-as | opt -globalsmodref-aa -load-vn -gcse | llvm-dis | not grep load +; RUN: llvm-as < %s | opt -globalsmodref-aa -load-vn -gcse | llvm-dis | not grep load -; This test requires the use of previous analyses to determine that +; This test requires the use of previous analyses to determine that ; doesnotmodX does not modify X (because 'sin' doesn't). -%X = internal global int 4 +@X = internal global i32 4 ; <i32*> [#uses=2] -declare double %sin(double) +declare double @sin(double) readnone -int %test(int *%P) { - store int 12, int* %X - call double %doesnotmodX(double 1.0) - %V = load int* %X - ret int %V +define i32 @test(i32* %P) { + store i32 12, i32* @X + call double @doesnotmodX( double 1.000000e+00 ) ; <double>:1 [#uses=0] + %V = load i32* @X ; <i32> [#uses=1] + ret i32 %V } -double %doesnotmodX(double %V) { - %V2 = call double %sin(double %V) - ret double %V2 +define double @doesnotmodX(double %V) { + %V2 = call double @sin( double %V ) readnone ; <double> [#uses=1] + ret double %V2 } |