summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
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
commit59a12198463bb13f1496205e496a2131462d3f88 (patch)
tree00762d21bc95bc44bcc1c08b9fa7213e7577d3f8 /llvm/lib/Target
parentd897b564ca26228fe1b0f11de5f60f1645129da8 (diff)
downloadbcm5719-llvm-59a12198463bb13f1496205e496a2131462d3f88.tar.gz
bcm5719-llvm-59a12198463bb13f1496205e496a2131462d3f88.zip
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. llvm-svn: 204912
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/README.txt12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt
index a9aab86abda..4ecacf9d010 100644
--- a/llvm/lib/Target/README.txt
+++ b/llvm/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
OpenPOWER on IntegriCloud