summaryrefslogtreecommitdiff
path: root/lib/Target/README.txt
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-24 01:12:18 +0000
committerChris Lattner <sabre@nondot.org>2011-01-24 01:12:18 +0000
commit7ea7d32de64247e1432a3d8b8d7bd4515714e63e (patch)
tree5d0632bb5e51fe541283b000b690c14bf6d4fb31 /lib/Target/README.txt
parente3357863aaabe297c5fa819d083f2308ebb5f2c2 (diff)
downloadllvm-7ea7d32de64247e1432a3d8b8d7bd4515714e63e.tar.gz
llvm-7ea7d32de64247e1432a3d8b8d7bd4515714e63e.tar.bz2
llvm-7ea7d32de64247e1432a3d8b8d7bd4515714e63e.tar.xz
with recent work, we now optimize this into:
define i32 @foo(i32 %x) nounwind readnone ssp { entry: %tobool = icmp eq i32 %x, 0 %tmp5 = select i1 %tobool, i32 2, i32 1 ret i32 %tmp5 } git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124091 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/README.txt')
-rw-r--r--lib/Target/README.txt20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index ea9bc8d84c..153c7d9068 100644
--- a/lib/Target/README.txt
+++ b/lib/Target/README.txt
@@ -1270,26 +1270,6 @@ SingleSource/Benchmarks/Misc/dt.c
//===---------------------------------------------------------------------===//
-A/B get pinned to the stack because we turn an if/then into a select instead
-of PRE'ing the load/store. This may be fixable in instcombine:
-http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37892
-
-struct X { int i; };
-int foo (int x) {
- struct X a;
- struct X b;
- struct X *p;
- a.i = 1;
- b.i = 2;
- if (x)
- p = &a;
- else
- p = &b;
- return p->i;
-}
-
-//===---------------------------------------------------------------------===//
-
Interesting missed case because of control flow flattening (should be 2 loads):
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26629
With: llvm-gcc t2.c -S -o - -O0 -emit-llvm | llvm-as |