mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-16 16:48:02 +00:00
Add another note about a missed compare with nsw arithmetic instcombine.
llvm-svn: 153574
This commit is contained in:
parent
201661d4bc
commit
b3055f03e1
@ -973,6 +973,13 @@ optimized with "clang -emit-llvm-bc | opt -std-compile-opts".
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
int f(int i, int j) { return i < j + 1; }
|
||||
int g(int i, int j) { return j > i - 1; }
|
||||
Should combine to "i <= j" (the add/sub has nsw). 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user