summaryrefslogtreecommitdiff
path: root/lib/Target/README.txt
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-09 00:11:10 +0000
committerChris Lattner <sabre@nondot.org>2010-02-09 00:11:10 +0000
commitcf031f6d66104a9b00839359c0ad1f57d05a8a63 (patch)
treeb7c11c1539c31fe08f2bd178d7ee49bf4bbbcc08 /lib/Target/README.txt
parent47afe4e806eb16dd3d90670adf3ea5f9bca72132 (diff)
downloadllvm-cf031f6d66104a9b00839359c0ad1f57d05a8a63.tar.gz
llvm-cf031f6d66104a9b00839359c0ad1f57d05a8a63.tar.bz2
llvm-cf031f6d66104a9b00839359c0ad1f57d05a8a63.tar.xz
move PR6212 to this file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/README.txt')
-rw-r--r--lib/Target/README.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index 7ba7ac9018..4fd46a8b28 100644
--- a/lib/Target/README.txt
+++ b/lib/Target/README.txt
@@ -1794,3 +1794,28 @@ declare void @bar() nounwind
The shift should be eliminated. Testcase derived from gcc.
//===---------------------------------------------------------------------===//
+
+These compile into different code, one gets recognized as a switch and the
+other doesn't due to phase ordering issues (PR6212):
+
+int test1(int mainType, int subType) {
+ if (mainType == 7)
+ subType = 4;
+ else if (mainType == 9)
+ subType = 6;
+ else if (mainType == 11)
+ subType = 9;
+ return subType;
+}
+
+int test2(int mainType, int subType) {
+ if (mainType == 7)
+ subType = 4;
+ if (mainType == 9)
+ subType = 6;
+ if (mainType == 11)
+ subType = 9;
+ return subType;
+}
+
+//===---------------------------------------------------------------------===//