summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-12-07 00:15:10 +0000
committerChris Lattner <sabre@nondot.org>2008-12-07 00:15:10 +0000
commita163568c037129c0882fbd37791040e61be0ecd8 (patch)
tree5a9f0747cbea7ef6f89a019a48a3e5d3b174349b /llvm/lib
parent06d0dd641b2e884cca53e0f93d3e0fa881476380 (diff)
downloadbcm5719-llvm-a163568c037129c0882fbd37791040e61be0ecd8.tar.gz
bcm5719-llvm-a163568c037129c0882fbd37791040e61be0ecd8.zip
improve a note.
llvm-svn: 60636
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/README.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt
index ba0b4433235..646961efe18 100644
--- a/llvm/lib/Target/README.txt
+++ b/llvm/lib/Target/README.txt
@@ -1388,7 +1388,18 @@ http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14705
When GVN/PRE finds a store of float* to a must aliases pointer when expecting
an int*, it should turn it into a bitcast. This is a nice generalization of
-the SROA hack that would apply to other cases.
+the SROA hack that would apply to other cases, e.g.:
+
+int foo(int C, int *P, float X) {
+ if (C) {
+ bar();
+ *P = 42;
+ } else
+ *(float*)P = X;
+
+ return *P;
+}
+
One example (that requires crazy phi translation) is:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16799
OpenPOWER on IntegriCloud