aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/README.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index ff392f491d7..7d90795aa3b 100644
--- a/lib/Target/README.txt
+++ b/lib/Target/README.txt
@@ -2143,7 +2143,8 @@ clang -O3 -fno-exceptions currently compiles this code:
void f(int N) {
std::vector<int> v(N);
- g(v);
+
+ extern void sink(void*); sink(&v);
}
into
@@ -2198,7 +2199,10 @@ clang -O3 -fno-exceptions currently compiles this code:
void f(int N) {
std::vector<int> v(N);
- g(v);
+ for (int k = 0; k < N; ++k)
+ v[k] = 0;
+
+ extern void sink(void*); sink(&v);
}
into almost the same as the previous note, but replace its final BB with: