diff options
author | Chris Lattner <sabre@nondot.org> | 2004-09-15 00:58:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-09-15 00:58:49 +0000 |
commit | 8b20217febf406d0adc8694214612a0474cec76c (patch) | |
tree | 8ca48f4bbb620bd8c2ad9bd25e7ab3ce04ec954a /test/Transforms/LICM | |
parent | b66e648e95a9c2d29c33297b0499b00d31b660c0 (diff) | |
download | external_llvm-8b20217febf406d0adc8694214612a0474cec76c.zip external_llvm-8b20217febf406d0adc8694214612a0474cec76c.tar.gz external_llvm-8b20217febf406d0adc8694214612a0474cec76c.tar.bz2 |
New testcase for PR420
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LICM')
-rw-r--r-- | test/Transforms/LICM/2004-09-14-AliasAnalysisInvalidate.llx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/Transforms/LICM/2004-09-14-AliasAnalysisInvalidate.llx b/test/Transforms/LICM/2004-09-14-AliasAnalysisInvalidate.llx new file mode 100644 index 0000000..253a980 --- /dev/null +++ b/test/Transforms/LICM/2004-09-14-AliasAnalysisInvalidate.llx @@ -0,0 +1,22 @@ +; RUN: llvm-as < %s | opt -globalsmodref-aa -licm -disable-output + +%PL_regcomp_parse = internal global sbyte* null + +implementation + +void %test() { + br label %Outer +Outer: + br label %Inner +Inner: + %tmp.114.i.i.i = load sbyte** %PL_regcomp_parse + %tmp.115.i.i.i = load sbyte* %tmp.114.i.i.i + + store sbyte* null, sbyte** %PL_regcomp_parse + + br bool false, label %Inner, label %Next +Next: + br bool false, label %Outer, label %Exit +Exit: + ret void +} |