Skip to content

Commit 7552a39

Browse files
committed
ReleaseNotes: reduce the indent
llvm-svn: 370346
1 parent 9f45ba8 commit 7552a39

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

llvm/docs/ReleaseNotes.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ Noteworthy optimizations
9494
int g(int);
9595
enum e { A, B, C, D, E };
9696
int f(e x, int y, int z) {
97-
switch(x) {
98-
case A: return g(y);
99-
case B: return g(z);
100-
case C: return g(y+z);
101-
case D: return g(x-z);
102-
case E: return g(x+z);
103-
}
97+
switch(x) {
98+
case A: return g(y);
99+
case B: return g(z);
100+
case C: return g(y+z);
101+
case D: return g(x-z);
102+
case E: return g(x+z);
103+
}
104104
}
105105
106106
will result in the following x86_64 machine code when compiled with Clang.
@@ -124,12 +124,12 @@ Noteworthy optimizations
124124
void g(int);
125125
enum e { A, B, C, D };
126126
void f(e x, int y, int z) {
127-
switch(x) {
128-
case A: g(6); break;
129-
case B: g(3); break;
130-
case C: g(9); break;
131-
case D: g(2); break;
132-
}
127+
switch(x) {
128+
case A: g(6); break;
129+
case B: g(3); break;
130+
case C: g(9); break;
131+
case D: g(2); break;
132+
}
133133
}
134134
135135
to be optimized to a single call to ``g``, with the argument loaded from a

0 commit comments

Comments
 (0)