[llvm-commits] [llvm] r60636 - /llvm/trunk/lib/Target/README.txt
Chris Lattner
sabre at nondot.org
Sat Dec 6 16:15:12 PST 2008
Author: lattner
Date: Sat Dec 6 18:15:10 2008
New Revision: 60636
URL: http://llvm.org/viewvc/llvm-project?rev=60636&view=rev
Log:
improve a note.
Modified:
llvm/trunk/lib/Target/README.txt
Modified: llvm/trunk/lib/Target/README.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/README.txt?rev=60636&r1=60635&r2=60636&view=diff
==============================================================================
--- llvm/trunk/lib/Target/README.txt (original)
+++ llvm/trunk/lib/Target/README.txt Sat Dec 6 18:15:10 2008
@@ -1388,7 +1388,18 @@
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
More information about the llvm-commits
mailing list