Skip to content

Commit

Permalink
[VNCoercion] Use IRBuilderBase; NFC
Browse files Browse the repository at this point in the history
And remove include from header.
  • Loading branch information
nikic committed Apr 4, 2020
1 parent 541bead commit 6896d55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions llvm/include/llvm/Transforms/Utils/VNCoercion.h
Expand Up @@ -20,14 +20,15 @@

#ifndef LLVM_TRANSFORMS_UTILS_VNCOERCION_H
#define LLVM_TRANSFORMS_UTILS_VNCOERCION_H
#include "llvm/IR/IRBuilder.h"

namespace llvm {
class Constant;
class Function;
class StoreInst;
class LoadInst;
class MemIntrinsic;
class Instruction;
class IRBuilderBase;
class Value;
class Type;
class DataLayout;
Expand All @@ -44,7 +45,7 @@ bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy,
///
/// If we can't do it, return null.
Value *coerceAvailableValueToLoadType(Value *StoredVal, Type *LoadedTy,
IRBuilder<> &IRB, const DataLayout &DL);
IRBuilderBase &IRB, const DataLayout &DL);

/// This function determines whether a value for the pointer LoadPtr can be
/// extracted from the store at DepSI.
Expand Down
3 changes: 2 additions & 1 deletion llvm/lib/Transforms/Utils/VNCoercion.cpp
Expand Up @@ -144,7 +144,8 @@ static T *coerceAvailableValueToLoadTypeHelper(T *StoredVal, Type *LoadedTy,
///
/// If we can't do it, return null.
Value *coerceAvailableValueToLoadType(Value *StoredVal, Type *LoadedTy,
IRBuilder<> &IRB, const DataLayout &DL) {
IRBuilderBase &IRB,
const DataLayout &DL) {
return coerceAvailableValueToLoadTypeHelper(StoredVal, LoadedTy, IRB, DL);
}

Expand Down

0 comments on commit 6896d55

Please sign in to comment.