diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-28 10:50:18 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-28 10:50:18 +0000 |
commit | 20b32d2da607b01abd0064ac8c35d9cb161af932 (patch) | |
tree | f7ab68687217289e3154dac2076d70c8452276fb | |
parent | 7ce39497b4dffabf354da1047a6274ae6b3a194c (diff) | |
download | bcm5719-llvm-20b32d2da607b01abd0064ac8c35d9cb161af932.tar.gz bcm5719-llvm-20b32d2da607b01abd0064ac8c35d9cb161af932.zip |
Add another note about a missed compare with nsw arithmetic instcombine.
llvm-svn: 153574
-rw-r--r-- | llvm/lib/Target/README.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt index 8929ac4f2a6..3c21ddae80c 100644 --- a/llvm/lib/Target/README.txt +++ b/llvm/lib/Target/README.txt @@ -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 |