Add a microoptimization note.

llvm-svn: 159082
This commit is contained in:
Benjamin Kramer 2012-06-23 15:19:31 +00:00
parent 78ade1dd08
commit 53ffe55a66
1 changed files with 6 additions and 0 deletions

View File

@ -964,6 +964,12 @@ optimized with "clang -emit-llvm-bc | opt -std-compile-opts".
//===---------------------------------------------------------------------===//
unsigned f(unsigned x) { return ((x & 7) + 1) & 15; }
The & 15 part should be optimized away, it doesn't change the result. Currently
not optimized with "clang -emit-llvm-bc | opt -std-compile-opts".
//===---------------------------------------------------------------------===//
This was noticed in the entryblock for grokdeclarator in 403.gcc:
%tmp = icmp eq i32 %decl_context, 4