Commits

Pete Cooper committed a3677cb75f3
Simplify the case where an enum_is_tag inst dominates a switch_enum and so we can replace the switch with a branch <rdar://problem/17849729> 2Sum , 632.00 , 642.00 , 10.00 , -1.6% Ackermann , 1554.00 , 1644.00 , 90.00 , -5.5% ArrayLiteral , 857.00 , 868.00 , 11.00 , -1.3% Ary , 1290.00 , 1304.00 , 14.00 , -1.1% Ary2 , 1641.00 , 1657.00 , 16.00 , -1.0% Ary3 , 1378.00 , 1416.00 , 38.00 , -2.7% DeltaBlue , 2429.00 , 2504.00 , 75.00 , -3.0% Dictionary , 400.00 , 407.00 , 7.00 , -1.7% Dictionary2 , 889.00 , 846.00 , 43.00 , 5.1% Dictionary3 , 787.00 , 746.00 , 41.00 , 5.5% EditDistance , 1337.00 , 1359.00 , 22.00 , -1.6% Fibonacci , 1380.00 , 1379.00 , 1.00 , 0.1% ForLoops , 1408.00 , 1248.00 , 160.00 , 12.8% Forest , 1018.00 , 976.00 , 42.00 , 4.3% GlobalClass , 1598.00 , 1600.00 , 2.00 , -0.1% Hash , 882.00 , 950.00 , 68.00 , -7.2% HeapSort , 1234.00 , 1220.00 , 14.00 , 1.1% Histogram , 414.00 , 415.00 , 1.00 , -0.2% Life , 64.00 , 64.00 , 0.00 , 0.0% LinkedList , 1523.00 , 1523.00 , 0.00 , 0.0% MatMul , 225.00 , 226.00 , 1.00 , -0.4% Memset , 74.00 , 42.00 , 32.00 , 76.2% MonteCarloE , 923.00 , 868.00 , 55.00 , 6.3% MonteCarloPi , 655.00 , 598.00 , 57.00 , 9.5% NBody , 43.00 , 42.00 , 1.00 , 2.4% NestedLoop , 937.00 , 936.00 , 1.00 , 0.1% Phonebook , 1290.00 , 1219.00 , 71.00 , 5.8% PrimeNum , 336.00 , 325.00 , 11.00 , 3.4% Prims , 1248.00 , 1258.00 , 10.00 , -0.8% QuickSort , 86.00 , 83.00 , 3.00 , 3.6% R17315246 , 1065.00 , 1067.00 , 2.00 , -0.2% RC4 , 25.00 , 25.00 , 0.00 , 0.0% RIPEMD , 770.00 , 785.00 , 15.00 , -1.9% Random , 982.00 , 991.00 , 9.00 , -0.9% Rectangles , 959.00 , 958.00 , 1.00 , 0.1% SmallPT , 819.00 , 791.00 , 28.00 , 3.5% StrCat , 1285.00 , 1466.00 , 181.00 , -12.3% StrToInt , 818.00 , 832.00 , 14.00 , -1.7% StringBuilder , 779.00 , 803.00 , 24.00 , -3.0% StringWalk , 1201.00 , 1195.00 , 6.00 , 0.5% Totals , 37369.00 , 37403.00 , 34.00 , -0.1% Walsh , 134.00 , 125.00 , 9.00 , 7.2% Swift SVN r20797