mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-02 19:24:25 +00:00
Move stuff out of the Optimizations directories into the appropriate Transforms
directories. Eliminate the opt namespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1520 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -12,8 +12,8 @@
|
||||
#include "llvm/iPHINode.h"
|
||||
#include "llvm/iMemory.h"
|
||||
#include "llvm/ConstantVals.h"
|
||||
#include "llvm/Optimizations/ConstantHandling.h"
|
||||
#include "llvm/Optimizations/DCE.h"
|
||||
#include "llvm/Transforms/Scalar/ConstantHandling.h"
|
||||
#include "llvm/Transforms/Scalar/DCE.h"
|
||||
#include "llvm/Analysis/Expressions.h"
|
||||
#include "Support/STLExtras.h"
|
||||
#include <map>
|
||||
@ -190,7 +190,7 @@ bool ExpressionConvertableToType(Value *V, const Type *Ty,
|
||||
// it can convert the value...
|
||||
//
|
||||
if (Constant *CPV = dyn_cast<Constant>(V))
|
||||
if (opt::ConstantFoldCastInstruction(CPV, Ty))
|
||||
if (ConstantFoldCastInstruction(CPV, Ty))
|
||||
return true; // Don't worry about deallocating, it's a constant.
|
||||
|
||||
return false; // Otherwise, we can't convert!
|
||||
@ -369,7 +369,7 @@ Value *ConvertExpressionToType(Value *V, const Type *Ty, ValueMapCache &VMC) {
|
||||
if (Constant *CPV = cast<Constant>(V)) {
|
||||
// Constants are converted by constant folding the cast that is required.
|
||||
// We assume here that all casts are implemented for constant prop.
|
||||
Value *Result = opt::ConstantFoldCastInstruction(CPV, Ty);
|
||||
Value *Result = ConstantFoldCastInstruction(CPV, Ty);
|
||||
assert(Result && "ConstantFoldCastInstruction Failed!!!");
|
||||
assert(Result->getType() == Ty && "Const prop of cast failed!");
|
||||
|
||||
|
Reference in New Issue
Block a user