summaryrefslogtreecommitdiffstats
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
commit187242b3ab92461663843b59c85b83c4a383fec0 (patch)
tree92da310d9b854998b3468712db6a6cc53f1be64c
parent819e54b65cd755fcb3cf3a8b8f94f1c9d3db0c2e (diff)
downloadbcm5719-llvm-187242b3ab92461663843b59c85b83c4a383fec0.tar.gz
bcm5719-llvm-187242b3ab92461663843b59c85b83c4a383fec0.zip
move PR6212 to this file.
llvm-svn: 95624
-rw-r--r--llvm/lib/Target/README.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt
index 7ba7ac90181..4fd46a8b28a 100644
--- a/llvm/lib/Target/README.txt
+++ b/llvm/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;
+}
+
+//===---------------------------------------------------------------------===//
OpenPOWER on IntegriCloud