Skip to content

Commit e259ce4

Browse files
committed
Resolve code review suggestions
1 parent 97f8231 commit e259ce4

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

llvm/lib/IR/AutoUpgrade.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -594,9 +594,6 @@ static bool upgradeX86IntrinsicFunction(Function *F, StringRef Name,
594594
return false; // No other 'x86.avx512.*'.
595595
}
596596

597-
if (Name.consume_front("avx512.mask.cmp.")) {
598-
}
599-
600597
if (Name.consume_front("avx512bf16.")) {
601598
// Added in 9.0
602599
ID = StringSwitch<Intrinsic::ID>(Name)
@@ -4207,10 +4204,8 @@ static Value *upgradeX86IntrinsicCall(StringRef Name, CallBase *CI, Function *F,
42074204
else
42084205
llvm_unreachable("Unexpected vector bit width");
42094206

4210-
if (NewArgType) {
4211-
Args[1] = Builder.CreateBitCast(Args[1], NewArgType);
4212-
Args[2] = Builder.CreateBitCast(Args[2], NewArgType);
4213-
}
4207+
Args[1] = Builder.CreateBitCast(Args[1], NewArgType);
4208+
Args[2] = Builder.CreateBitCast(Args[2], NewArgType);
42144209
}
42154210

42164211
Rep = Builder.CreateIntrinsic(IID, Args);

0 commit comments

Comments
 (0)