Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 437fa86

Browse files
Quentin Colombetahmedbougacha
authored andcommitted
[AArch64][LegalizerInfo] Specify the type of the opcode.
This is an attempt to fix the win7 bot that does not seem to be very good at infering the type when it gets used in an initiliazer list. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293246 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit a441c0b)
1 parent 16e81ea commit 437fa86

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/Target/AArch64/AArch64LegalizerInfo.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ AArch64LegalizerInfo::AArch64LegalizerInfo() {
3636
const LLT v4s32 = LLT::vector(4, 32);
3737
const LLT v2s64 = LLT::vector(2, 64);
3838

39-
for (auto BinOp : {G_ADD, G_SUB, G_MUL, G_AND, G_OR, G_XOR, G_SHL}) {
39+
for (unsigned BinOp : {G_ADD, G_SUB, G_MUL, G_AND, G_OR, G_XOR, G_SHL}) {
4040
// These operations naturally get the right answer when used on
4141
// GPR32, even if the actual type is narrower.
4242
for (auto Ty : {s32, s64, v2s32, v4s32, v2s64})
@@ -52,33 +52,33 @@ AArch64LegalizerInfo::AArch64LegalizerInfo() {
5252
for (auto Ty : {s1, s8, s16, s32})
5353
setAction({G_GEP, 1, Ty}, WidenScalar);
5454

55-
for (auto BinOp : {G_LSHR, G_ASHR, G_SDIV, G_UDIV}) {
55+
for (unsigned BinOp : {G_LSHR, G_ASHR, G_SDIV, G_UDIV}) {
5656
for (auto Ty : {s32, s64})
5757
setAction({BinOp, Ty}, Legal);
5858

5959
for (auto Ty : {s1, s8, s16})
6060
setAction({BinOp, Ty}, WidenScalar);
6161
}
6262

63-
for (auto BinOp : { G_SREM, G_UREM })
63+
for (unsigned BinOp : {G_SREM, G_UREM})
6464
for (auto Ty : { s1, s8, s16, s32, s64 })
6565
setAction({BinOp, Ty}, Lower);
6666

67-
for (auto Op : { G_UADDE, G_USUBE, G_SADDO, G_SSUBO, G_SMULO, G_UMULO }) {
67+
for (unsigned Op : {G_UADDE, G_USUBE, G_SADDO, G_SSUBO, G_SMULO, G_UMULO}) {
6868
for (auto Ty : { s32, s64 })
6969
setAction({Op, Ty}, Legal);
7070

7171
setAction({Op, 1, s1}, Legal);
7272
}
7373

74-
for (auto BinOp : {G_FADD, G_FSUB, G_FMUL, G_FDIV})
74+
for (unsigned BinOp : {G_FADD, G_FSUB, G_FMUL, G_FDIV})
7575
for (auto Ty : {s32, s64})
7676
setAction({BinOp, Ty}, Legal);
7777

7878
setAction({G_FREM, s32}, Libcall);
7979
setAction({G_FREM, s64}, Libcall);
8080

81-
for (auto MemOp : {G_LOAD, G_STORE}) {
81+
for (unsigned MemOp : {G_LOAD, G_STORE}) {
8282
for (auto Ty : {s8, s16, s32, s64, p0, v2s32})
8383
setAction({MemOp, Ty}, Legal);
8484

0 commit comments

Comments
 (0)