X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FREADME.txt;h=4fd46a8b28ad2fec820098ef8829f5df015dcd57;hb=3c91b05d2b1751b9e4e21fd958d358ec463dcd3c;hp=7ba7ac9018179968bd753420054c03b30cc5fe38;hpb=1144d7e3cc27a8bdf4be6bae651c6e8c7d1ec92d;p=oota-llvm.git diff --git a/lib/Target/README.txt b/lib/Target/README.txt index 7ba7ac90181..4fd46a8b28a 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; +} + +//===---------------------------------------------------------------------===//