From 9e762d0cd14604b5b9568c7ae5184a69d1207836 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 28 Jun 2003 23:52:34 +0000 Subject: [PATCH] New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6969 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Analysis/DSGraph/mustalias.ll | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/Analysis/DSGraph/mustalias.ll diff --git a/test/Analysis/DSGraph/mustalias.ll b/test/Analysis/DSGraph/mustalias.ll new file mode 100644 index 00000000000..349377cd3d8 --- /dev/null +++ b/test/Analysis/DSGraph/mustalias.ll @@ -0,0 +1,17 @@ +; Test that ds-aa is returning must-alias information when it can. + +; RUN: as < %s | opt -no-aa -ds-aa -load-vn -gcse | dis | not grep load + +%X = global int 20 + +implementation + +int* %id(int* %P) { ret int* %P } + +int %main() { + store int 0, int* %X + %XP = call int* %id(int* %X) + %A = load int* %XP ; Should eliminate load! + ret int %A +} + -- 2.34.1