mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 14:36:34 +00:00
Eliminate a few unused-variable warnings
llvm-svn: 77519
This commit is contained in:
parent
d5b7c64109
commit
8c9b60cabc
@ -1070,7 +1070,6 @@ namespace llvm {
|
||||
|
||||
Value *findDbgGlobalDeclare(GlobalVariable *V) {
|
||||
const Module *M = V->getParent();
|
||||
LLVMContext& Context = M->getContext();
|
||||
|
||||
const Type *Ty = M->getTypeByName("llvm.dbg.global_variable.type");
|
||||
if (!Ty) return 0;
|
||||
|
@ -43,8 +43,6 @@ ConstantRange LoopVR::getRange(const SCEV *S, const SCEV *T, ScalarEvolution &SE
|
||||
if (const SCEVConstant *C = dyn_cast<SCEVConstant>(S))
|
||||
return ConstantRange(C->getValue()->getValue());
|
||||
|
||||
LLVMContext &Context = SE.getContext();
|
||||
|
||||
ConstantRange FullSet(cast<IntegerType>(S->getType())->getBitWidth(), true);
|
||||
|
||||
// {x,+,y,+,...z}. We detect overflow by checking the size of the set after
|
||||
|
@ -86,8 +86,6 @@ namespace {
|
||||
}
|
||||
|
||||
bool isolateGV(Module &M) {
|
||||
LLVMContext &Context = M.getContext();
|
||||
|
||||
// Mark all globals internal
|
||||
// FIXME: what should we do with private linkage?
|
||||
for (Module::global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I)
|
||||
|
@ -1862,8 +1862,6 @@ ICmpInst *LoopStrengthReduce::ChangeCompareStride(Loop *L, ICmpInst *Cond,
|
||||
const SCEVConstant *SC = dyn_cast<SCEVConstant>(*CondStride);
|
||||
if (!SC) return Cond;
|
||||
|
||||
LLVMContext &Context = Cond->getContext();
|
||||
|
||||
ICmpInst::Predicate Predicate = Cond->getPredicate();
|
||||
int64_t CmpSSInt = SC->getValue()->getSExtValue();
|
||||
unsigned BitWidth = SE->getTypeSizeInBits((*CondStride)->getType());
|
||||
|
Loading…
Reference in New Issue
Block a user