From: Chris Lattner Date: Sun, 7 Dec 2008 00:15:10 +0000 (+0000) Subject: improve a note. X-Git-Tag: android-x86-6.0-r1~1003^2~24022 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=630c99fd21cb27d955b43db250de36393e514ba4;p=android-x86%2Fexternal-llvm.git improve a note. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60636 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/README.txt b/lib/Target/README.txt index ba0b4433235..646961efe18 100644 --- a/lib/Target/README.txt +++ b/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