aboutsummaryrefslogtreecommitdiffstats
path: root/test/Analysis/BasicAA/cas.ll
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-09-26 20:15:28 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-09-26 20:15:28 +0000
commit46cb5afdcd031c371c78201fb34291d9d48b2ee4 (patch)
treea45b5d099ba1902183cdf6bca2282b0f5435a082 /test/Analysis/BasicAA/cas.ll
parent22d54da918ed0d63b29d4030fc6dcf4afb53ada6 (diff)
downloadexternal_llvm-46cb5afdcd031c371c78201fb34291d9d48b2ee4.zip
external_llvm-46cb5afdcd031c371c78201fb34291d9d48b2ee4.tar.gz
external_llvm-46cb5afdcd031c371c78201fb34291d9d48b2ee4.tar.bz2
Enhance alias analysis for atomic instructions a bit. Upgrade a couple alias-analysis tests to the new atomic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140557 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/BasicAA/cas.ll')
-rw-r--r--test/Analysis/BasicAA/cas.ll4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/Analysis/BasicAA/cas.ll b/test/Analysis/BasicAA/cas.ll
index 8dd3695..754309c 100644
--- a/test/Analysis/BasicAA/cas.ll
+++ b/test/Analysis/BasicAA/cas.ll
@@ -6,10 +6,8 @@
define i32 @main() {
%a = load i32* @flag0
- %b = tail call i32 @llvm.atomic.swap.i32.p0i32(i32* @turn, i32 1)
+ %b = atomicrmw xchg i32* @turn, i32 1 monotonic
%c = load i32* @flag0
%d = sub i32 %a, %c
ret i32 %d
}
-
-declare i32 @llvm.atomic.swap.i32.p0i32(i32*, i32) nounwind