[llvm-branch-commits] [llvm-branch] r370346 - ReleaseNotes: reduce the indent
Hans Wennborg via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Aug 29 05:44:53 PDT 2019
Author: hans
Date: Thu Aug 29 05:44:53 2019
New Revision: 370346
URL: http://llvm.org/viewvc/llvm-project?rev=370346&view=rev
Log:
ReleaseNotes: reduce the indent
Modified:
llvm/branches/release_90/docs/ReleaseNotes.rst
Modified: llvm/branches/release_90/docs/ReleaseNotes.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_90/docs/ReleaseNotes.rst?rev=370346&r1=370345&r2=370346&view=diff
==============================================================================
--- llvm/branches/release_90/docs/ReleaseNotes.rst (original)
+++ llvm/branches/release_90/docs/ReleaseNotes.rst Thu Aug 29 05:44:53 2019
@@ -94,13 +94,13 @@ Noteworthy optimizations
int g(int);
enum e { A, B, C, D, E };
int f(e x, int y, int z) {
- switch(x) {
- case A: return g(y);
- case B: return g(z);
- case C: return g(y+z);
- case D: return g(x-z);
- case E: return g(x+z);
- }
+ switch(x) {
+ case A: return g(y);
+ case B: return g(z);
+ case C: return g(y+z);
+ case D: return g(x-z);
+ case E: return g(x+z);
+ }
}
will result in the following x86_64 machine code when compiled with Clang.
@@ -124,12 +124,12 @@ Noteworthy optimizations
void g(int);
enum e { A, B, C, D };
void f(e x, int y, int z) {
- switch(x) {
- case A: g(6); break;
- case B: g(3); break;
- case C: g(9); break;
- case D: g(2); break;
- }
+ switch(x) {
+ case A: g(6); break;
+ case B: g(3); break;
+ case C: g(9); break;
+ case D: g(2); break;
+ }
}
to be optimized to a single call to ``g``, with the argument loaded from a
More information about the llvm-branch-commits
mailing list