summaryrefslogtreecommitdiff
path: root/lib/Target/README.txt
diff options
context:
space:
mode:
authorErik Verbruggen <erikjv@me.com>2014-03-27 11:16:05 +0000
committerErik Verbruggen <erikjv@me.com>2014-03-27 11:16:05 +0000
commit668c2aa51740da56f26a7488348362916fc77b2c (patch)
tree3e2d62ac54468fc0bb064a17451ea2d84ae5490b /lib/Target/README.txt
parent5fa6dffd30c24f82a615cf7d2e17252974c4b4eb (diff)
downloadllvm-668c2aa51740da56f26a7488348362916fc77b2c.tar.gz
llvm-668c2aa51740da56f26a7488348362916fc77b2c.tar.bz2
llvm-668c2aa51740da56f26a7488348362916fc77b2c.tar.xz
InstCombine: merge constants in both operands of icmp.
Transform: icmp X+Cst2, Cst into: icmp X, Cst-Cst2 when Cst-Cst2 does not overflow, and the add has nsw. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/README.txt')
-rw-r--r--lib/Target/README.txt12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index a9aab86abd..4ecacf9d01 100644
--- a/lib/Target/README.txt
+++ b/lib/Target/README.txt
@@ -930,18 +930,6 @@ optimized with "clang -emit-llvm-bc | opt -std-compile-opts".
//===---------------------------------------------------------------------===//
-int g(int x) { return (x - 10) < 0; }
-Should combine to "x <= 9" (the sub has nsw). Currently not
-optimized with "clang -emit-llvm-bc | opt -std-compile-opts".
-
-//===---------------------------------------------------------------------===//
-
-int g(int x) { return (x + 10) < 0; }
-Should combine to "x < -10" (the add has nsw). Currently not
-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