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 | 7b7585d1530907369919adf0a9257e2149286b64 (patch) | |
| tree | a66876e91844fb0fe9ec7688cf2058dbfb95a5dc /llvm/test/Transforms/GVN/newoperator.ll | |
| parent | 2cfe46fd34158610e8456b7f894bdd5574f0eaee (diff) | |
| download | bcm5719-llvm-7b7585d1530907369919adf0a9257e2149286b64.tar.gz bcm5719-llvm-7b7585d1530907369919adf0a9257e2149286b64.zip | |
Revert 179071 because it is not the right way to support non standard new/new[] operators.
llvm-svn: 179084
Diffstat (limited to 'llvm/test/Transforms/GVN/newoperator.ll')
| -rw-r--r-- | llvm/test/Transforms/GVN/newoperator.ll | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/test/Transforms/GVN/newoperator.ll b/llvm/test/Transforms/GVN/newoperator.ll deleted file mode 100644 index 21cfc1db6e1..00000000000 --- a/llvm/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"} |

