diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-04-09 04:43:46 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-04-09 04:43:46 +0000 |
commit | e43e2d8cf0a5a05a1d1ed5abbc2134834a9b06d2 (patch) | |
tree | d9c3b1c5a89293136e4e16b14a3760d0274aa4ea /test/Transforms/GVN | |
parent | 6ed9284c2bcfb81fa0303409c6bd4366bc1e822a (diff) | |
download | external_llvm-e43e2d8cf0a5a05a1d1ed5abbc2134834a9b06d2.zip external_llvm-e43e2d8cf0a5a05a1d1ed5abbc2134834a9b06d2.tar.gz external_llvm-e43e2d8cf0a5a05a1d1ed5abbc2134834a9b06d2.tar.bz2 |
Revert 179071 because it is not the right way to support non standard new/new[] operators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/GVN')
-rw-r--r-- | test/Transforms/GVN/newoperator.ll | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/Transforms/GVN/newoperator.ll b/test/Transforms/GVN/newoperator.ll deleted file mode 100644 index 21cfc1d..0000000 --- a/test/Transforms/GVN/newoperator.ll +++ /dev/null @@ -1,20 +0,0 @@ -; RUN: opt < %s -basicaa -gvn -S | FileCheck %s - -; We can't remove the load because new operators are overideable and can return non-undefined memory. -;CHECK: main -;CHECK: load -;CHECK: ret -define i32 @main(i32 %argc, i8** nocapture %argv) ssp uwtable { - %1 = tail call noalias i8* @_Znam(i64 800) - %2 = bitcast i8* %1 to i32** - %3 = load i32** %2, align 8, !tbaa !0 - %4 = icmp eq i32* %3, null - %5 = zext i1 %4 to i32 - ret i32 %5 -} - -declare noalias i8* @_Znam(i64) - -!0 = metadata !{metadata !"any pointer", metadata !1} -!1 = metadata !{metadata !"omnipotent char", metadata !2} -!2 = metadata !{metadata !"Simple C/C++ TBAA"} |