X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=lib%2FTransforms%2FLevelRaise.cpp;h=9cbe3b813eba1620bd070563ea545a309dcbe76a;hb=7e6e44139429d1b8003426b29f14126b89591262;hp=d36046811cbca1e0911093ee47411757ea5eeaaf;hpb=600d73b5482bc6300c9cfe78c079b79582406644;p=oota-llvm.git diff --git a/lib/Transforms/LevelRaise.cpp b/lib/Transforms/LevelRaise.cpp index d36046811cb..9cbe3b813eb 100644 --- a/lib/Transforms/LevelRaise.cpp +++ b/lib/Transforms/LevelRaise.cpp @@ -24,6 +24,7 @@ #include "llvm/ADT/Statistic.h" #include "llvm/ADT/STLExtras.h" #include +#include using namespace llvm; // StartInst - This enables the -raise-start-inst=foo option to cause the level @@ -102,7 +103,6 @@ bool RPR::PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) { if (CastInst *CI = dyn_cast(I)) { Value *Src = CI->getOperand(0); - Instruction *SrcI = dyn_cast(Src); // Nonnull if instr source const Type *DestTy = CI->getType(); // Peephole optimize the following instruction: