@@ -11677,7 +11677,7 @@ Value *BoUpSLP::createBuildVector(const TreeEntry *E) {
11677
11677
}
11678
11678
11679
11679
Value *BoUpSLP::vectorizeTree(TreeEntry *E, bool PostponedPHIs) {
11680
- IRBuilder<> ::InsertPointGuard Guard(Builder);
11680
+ IRBuilderBase ::InsertPointGuard Guard(Builder);
11681
11681
11682
11682
if (E->VectorizedValue &&
11683
11683
(E->State != TreeEntry::Vectorize || E->getOpcode() != Instruction::PHI ||
@@ -12700,7 +12700,7 @@ Value *BoUpSLP::vectorizeTree(
12700
12700
auto Key = std::make_pair(Vec, ScalarTy);
12701
12701
auto VecIt = VectorCasts.find(Key);
12702
12702
if (VecIt == VectorCasts.end()) {
12703
- IRBuilder<> ::InsertPointGuard Guard(Builder);
12703
+ IRBuilderBase ::InsertPointGuard Guard(Builder);
12704
12704
if (auto *IVec = dyn_cast<Instruction>(Vec))
12705
12705
Builder.SetInsertPoint(IVec->getNextNonDebugInstruction());
12706
12706
Vec = Builder.CreateIntCast(
@@ -14689,7 +14689,7 @@ class HorizontalReduction {
14689
14689
}
14690
14690
14691
14691
/// Creates reduction operation with the current opcode.
14692
- static Value *createOp(IRBuilder<> &Builder, RecurKind Kind, Value *LHS,
14692
+ static Value *createOp(IRBuilderBase &Builder, RecurKind Kind, Value *LHS,
14693
14693
Value *RHS, const Twine &Name, bool UseSelect) {
14694
14694
unsigned RdxOpcode = RecurrenceDescriptor::getOpcode(Kind);
14695
14695
bool IsConstant = isConstant(LHS) && isConstant(RHS);
@@ -14768,7 +14768,7 @@ class HorizontalReduction {
14768
14768
14769
14769
/// Creates reduction operation with the current opcode with the IR flags
14770
14770
/// from \p ReductionOps, dropping nuw/nsw flags.
14771
- static Value *createOp(IRBuilder<> &Builder, RecurKind RdxKind, Value *LHS,
14771
+ static Value *createOp(IRBuilderBase &Builder, RecurKind RdxKind, Value *LHS,
14772
14772
Value *RHS, const Twine &Name,
14773
14773
const ReductionOpsListType &ReductionOps) {
14774
14774
bool UseSelect =
@@ -15857,7 +15857,7 @@ class HorizontalReduction {
15857
15857
}
15858
15858
15859
15859
/// Emit a horizontal reduction of the vectorized value.
15860
- Value *emitReduction(Value *VectorizedValue, IRBuilder<> &Builder,
15860
+ Value *emitReduction(Value *VectorizedValue, IRBuilderBase &Builder,
15861
15861
unsigned ReduxWidth, const TargetTransformInfo *TTI) {
15862
15862
assert(VectorizedValue && "Need to have a vectorized tree node");
15863
15863
assert(isPowerOf2_32(ReduxWidth) &&
0 commit comments