Changeset 3587 in CLRX
 Timestamp:
 Jan 7, 2018, 2:14:22 PM (5 months ago)
 Location:
 CLRadeonExtender/trunk
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

CLRadeonExtender/trunk/amdasm/AsmRegAlloc.cpp
r3586 r3587 765 765 } 766 766 else // ssaIdBefore is zero (first ssaId), ssaIdFirst is NONE 767 ssaEntry.second.ssaId Before = 0;767 ssaEntry.second.ssaIdLast = ssaEntry.second.ssaIdBefore = 0; 768 768 } 769 769 else if (ssaEntry.first.regVar==nullptr) 770 770 // if write, then ssaIdFirst is zero, ssaIdBefore is NONE 771 ssaEntry.second.ssaId First = 0;771 ssaEntry.second.ssaIdLast = ssaEntry.second.ssaIdFirst = 0; 772 772 773 773 if (ssaId != totalSSACount) // save old ssaId … … 779 779 totalSSACount : SIZE_MAX; 780 780 ssaEntry.second.ssaIdBefore = ssaId1; 781 782 totalSSACount += ssaEntry.second.ssaIdChange; 783 ssaEntry.second.ssaIdLast = ssaEntry.second.ssaIdChange!=0 ? 784 totalSSACount1 : SIZE_MAX; 781 785 } 782 783 totalSSACount += ssaEntry.second.ssaIdChange;784 ssaEntry.second.ssaIdLast = ssaEntry.second.ssaIdChange!=0 ?785 totalSSACount1 : SIZE_MAX;786 786 //totalSSACount = std::max(totalSSACount, ssaId); 787 787 ssaId = totalSSACount; 
CLRadeonExtender/trunk/tests/amdasm/AsmRegAlloc.cpp
r3586 r3587 688 688 { 0, 56, { }, 689 689 { 690 { { "", 3 }, SSAInfo(0, SIZE_MAX, 0, SIZE_MAX, 0, true) },691 { { "", 256 }, SSAInfo(0, SIZE_MAX, 0, SIZE_MAX, 0, true) },692 { { "", 266 }, SSAInfo(SIZE_MAX, 0, 0, SIZE_MAX, 0, false) },690 { { "", 3 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 691 { { "", 256 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 692 { { "", 266 }, SSAInfo(SIZE_MAX, 0, 0, 0, 0, false) }, 693 693 { { "sa", 2 }, SSAInfo(0, SIZE_MAX, 1, SIZE_MAX, 0, true) }, 694 694 { { "sa", 4 }, SSAInfo(SIZE_MAX, 0, 0, 1, 2, false) }, … … 728 728 { { 1, false }, { 2, false }, { 3, false } }, 729 729 { 730 { { "", 0 }, SSAInfo(0, SIZE_MAX, 0, SIZE_MAX, 0, true) },731 { { "", 1 }, SSAInfo(0, SIZE_MAX, 0, SIZE_MAX, 0, true) },732 { { "", 3 }, SSAInfo(0, SIZE_MAX, 0, SIZE_MAX, 0, true) },733 { { "", 256 }, SSAInfo(0, SIZE_MAX, 0, SIZE_MAX, 0, true) },730 { { "", 0 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 731 { { "", 1 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 732 { { "", 3 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 733 { { "", 256 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 734 734 { { "sa", 2 }, SSAInfo(0, SIZE_MAX, 1, SIZE_MAX, 0, true) }, 735 735 { { "sa", 4 }, SSAInfo(SIZE_MAX, 0, 0, 1, 2, false) }, … … 790 790 { { 1, false }, { 2, false }, { 3, false } }, 791 791 { 792 { { "", 0 }, SSAInfo(0, SIZE_MAX, 0, SIZE_MAX, 0, true) },793 { { "", 1 }, SSAInfo(0, SIZE_MAX, 0, SIZE_MAX, 0, true) },794 { { "", 3 }, SSAInfo(0, SIZE_MAX, 0, SIZE_MAX, 0, true) },795 { { "", 256 }, SSAInfo(0, SIZE_MAX, 0, SIZE_MAX, 0, true) },792 { { "", 0 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 793 { { "", 1 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 794 { { "", 3 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 795 { { "", 256 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 796 796 { { "sa", 2 }, SSAInfo(0, SIZE_MAX, 1, SIZE_MAX, 0, true) }, 797 797 { { "sa", 4 }, SSAInfo(SIZE_MAX, 0, 0, 1, 2, false) }, … … 883 883 { 884 884 { 0, 28, 885 { { 1, false }, { 4, false }, { 8, false }, { 12, false }, 886 { 16, false } }, 887 { 888 { { "", 0 }, SSAInfo(0, SIZE_MAX, 1, SIZE_MAX, 0, true) }, 889 { { "", 1 }, SSAInfo(0, SIZE_MAX, 1, SIZE_MAX, 0, true) }, 890 { { "", 256 }, SSAInfo(0, SIZE_MAX, 1, SIZE_MAX, 0, true) }, 891 { { "", 256+1 }, SSAInfo(0, SIZE_MAX, 1, SIZE_MAX, 0, true) }, 892 { { "", 256+2 }, SSAInfo(SIZE_MAX, SIZE_MAX, 0, SIZE_MAX, 0, false) }, 893 { { "", 256+3 }, SSAInfo(SIZE_MAX, SIZE_MAX, 0, SIZE_MAX, 0, false) }, 894 { { "", 256+4 }, SSAInfo(SIZE_MAX, SIZE_MAX, 0, SIZE_MAX, 0, false) }, 895 { { "", 256+5 }, SSAInfo(SIZE_MAX, SIZE_MAX, 0, SIZE_MAX, 0, false) }, 885 { { 1, false }, { 4, false }, { 8, false }, { 12, false } }, 886 { 887 { { "", 0 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 888 { { "", 1 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 889 { { "", 256 }, SSAInfo(0, SIZE_MAX, 0, SIZE_MAX, 0, true) }, 890 { { "", 256+1 }, SSAInfo(0, SIZE_MAX, 0, SIZE_MAX, 0, true) }, 891 { { "", 256+2 }, SSAInfo(SIZE_MAX, 0, 0, SIZE_MAX, 0, false) }, 892 { { "", 256+3 }, SSAInfo(SIZE_MAX, 0, 0, SIZE_MAX, 0, false) }, 893 { { "", 256+4 }, SSAInfo(SIZE_MAX, 0, 0, SIZE_MAX, 0, false) }, 894 { { "", 256+5 }, SSAInfo(SIZE_MAX, 0, 0, SIZE_MAX, 0, false) }, 896 895 { { "va", 0 }, SSAInfo(SIZE_MAX, 0, 0, 0, 1, false) }, 897 896 { { "va", 1 }, SSAInfo(SIZE_MAX, 0, 0, 0, 1, false) }, 898 897 }, false, false, false }, 899 898 { 28, 52, 900 { { 2, false }, { 5, false }, { 9, false }, { 13, false } ,901 { 17, false } },902 {903 { { "", 0 }, SSAInfo(0, SIZE_MAX, 1, SIZE_MAX, 0, true) },904 { { "", 1 }, SSAInfo(0, SIZE_MAX, 1, SIZE_MAX, 0, true) },899 { { 2, false }, { 5, false }, { 9, false }, { 13, false } }, 900 { 901 { { "", 0 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 902 { { "", 1 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 903 { { "", 256+2 }, SSAInfo(0, SIZE_MAX, 0, SIZE_MAX, 0, true) }, 905 904 { { "va", 0 }, SSAInfo(0, SIZE_MAX, 1, SIZE_MAX, 0, true) }, 906 905 { { "va", 1 }, SSAInfo(0, SIZE_MAX, 1, SIZE_MAX, 0, true) }, 907 906 { { "va", 2 }, SSAInfo(SIZE_MAX, 0, 0, 0, 1, false) }, 908 907 { { "va", 3 }, SSAInfo(SIZE_MAX, 0, 0, 0, 1, false) }, 909 { { "va", 4 }, SSAInfo(SIZE_MAX, 0, 0, 0, 1, false) } 908 { { "va", 4 }, SSAInfo(SIZE_MAX, 0, 0, 0, 1, false) }, 909 { { "va", 5 }, SSAInfo(0, SIZE_MAX, 1, SIZE_MAX, 0, true) } 910 910 }, false, false, false }, 911 911 { 52, 68, 912 { { 3, false }, { 6, false }, { 10, false }, { 14, false }, 913 { 18, false } }, 914 { 912 { { 3, false }, { 6, false }, { 10, false }, { 14, false } }, 913 { 914 { { "", 0 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 915 { { "", 1 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 916 { { "", 256+3, }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 917 { { "va", 0 }, SSAInfo(0, SIZE_MAX, 1, SIZE_MAX, 0, true) }, 918 { { "va", 1 }, SSAInfo(0, SIZE_MAX, 1, SIZE_MAX, 0, true) }, 919 { { "va", 2 }, SSAInfo(0, 1, 1, 1, 1, false) }, 920 { { "va", 3 }, SSAInfo(0, 1, 1, 1, 1, false) }, 921 { { "va", 4 }, SSAInfo(0, SIZE_MAX, 1, SIZE_MAX, 0, true) }, 922 { { "va", 5 }, SSAInfo(0, 1, 1, 1, 1, false) }, 915 923 }, false, false, false }, 916 924 { 68, 92, 917 { { 7, false }, { 11, false }, { 15, false }, { 19, false } }, 918 { 925 { { 7, false }, { 11, false }, { 15, false } }, 926 { 927 { { "", 0 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 928 { { "", 1 }, SSAInfo(0, SIZE_MAX, 0, 0, 0, true) }, 919 929 }, false, false, false }, 920 // 48: 930 // 47: 931 { 96, 108, 932 { }, 933 { }, false, false, false }, 934 { 108, 112, 935 { }, 936 { }, false, false, false }, 937 { 112, 116, 938 { }, 939 { }, false, false, false }, 940 { 116, 124, 941 { }, 942 { }, false, false, true }, 943 // 811 944 { 128, 140, 945 { }, 946 { }, false, false, false }, 947 { 140, 148, 948 { }, 949 { }, false, false, false }, 950 { 148, 152, 951 { }, 952 { }, false, false, false }, 953 { 152, 160, 954 { }, 955 { }, false, false, true }, 956 // 1215 957 { 160, 172, 958 { }, 959 { }, false, false, false }, 960 { 172, 176, 961 { }, 962 { }, false, false, false }, 963 { 176, 180, 964 { }, 965 { }, false, false, false }, 966 { 180, 188, 967 { }, 968 { }, false, false, true } 921 969 }, 922 970 { },
Note: See TracChangeset
for help on using the changeset viewer.