diff options
author | Duncan Sands <baldrick@free.fr> | 2010-11-13 21:33:19 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-11-13 21:33:19 +0000 |
commit | 8c58ba419964bd5d7b53b97c15dce5ba0ee70a87 (patch) | |
tree | 3ee160677a9f9c2d430a79a48f7eb297eeacab14 /clang/lib/CodeGen/CGExprCXX.cpp | |
parent | 052caec1f3ff498d0d1f6f7cdf77fadeb43d7c1c (diff) | |
download | bcm5719-llvm-8c58ba419964bd5d7b53b97c15dce5ba0ee70a87.tar.gz bcm5719-llvm-8c58ba419964bd5d7b53b97c15dce5ba0ee70a87.zip |
Testcase to go along with commit 118923 ("Have GVN simplify instructions
as it goes"). Before -std-compile-opts only got it down to
%a = tail call i32 @foo(i32 0) readnone
%x = tail call i32 @foo(i32 %a) readnone
%y = tail call i32 @foo(i32 %a) readnone
%z = icmp eq i32 %x, %y
ret i1 %z
while now -basicaa -gvn alone reduce it to
%a = call i32 @foo(i32 0) readnone
%x = call i32 @foo(i32 %a) readnone
ret i1 true
llvm-svn: 119009
Diffstat (limited to 'clang/lib/CodeGen/CGExprCXX.cpp')
0 files changed, 0 insertions, 0 deletions