summaryrefslogtreecommitdiff
path: root/lib/Target/README.txt
diff options
context:
space:
mode:
authorErik Verbruggen <erikjv@me.com>2014-03-28 14:50:57 +0000
committerErik Verbruggen <erikjv@me.com>2014-03-28 14:50:57 +0000
commit76eb786cf79ce1c3c167c8cb19cfc37aa9b2aafd (patch)
treea545d08e676360fa81f056f1e947665480878661 /lib/Target/README.txt
parentcc58a593a2b975bd46a25749287872d0d6978488 (diff)
downloadllvm-76eb786cf79ce1c3c167c8cb19cfc37aa9b2aafd.tar.gz
llvm-76eb786cf79ce1c3c167c8cb19cfc37aa9b2aafd.tar.bz2
llvm-76eb786cf79ce1c3c167c8cb19cfc37aa9b2aafd.tar.xz
Revert "InstCombine: merge constants in both operands of icmp."
This reverts commit r204912, and follow-up commit r204948. This introduced a performance regression, and the fix is not completely clear yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/README.txt')
-rw-r--r--lib/Target/README.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index 4ecacf9d01..a9aab86abd 100644
--- a/lib/Target/README.txt
+++ b/lib/Target/README.txt
@@ -930,6 +930,18 @@ 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