[llvm-commits] [polly] r151905 - /polly/trunk/lib/CodeGeneration.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Fri Mar 2 03:27:22 PST 2012
Author: grosser
Date: Fri Mar 2 05:27:21 2012
New Revision: 151905
URL: http://llvm.org/viewvc/llvm-project?rev=151905&view=rev
Log:
CodeGen: Remove unneeded member variable
Modified:
polly/trunk/lib/CodeGeneration.cpp
Modified: polly/trunk/lib/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGeneration.cpp?rev=151905&r1=151904&r2=151905&view=diff
==============================================================================
--- polly/trunk/lib/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGeneration.cpp Fri Mar 2 05:27:21 2012
@@ -176,9 +176,6 @@
isl_set *ScatteringDomain;
Pass *P;
-
- const Region &getRegion();
-
Value *makeVectorOperand(Value *Operand);
Value *getOperand(const Value *oldOperand, ValueMapT &BBMap,
@@ -288,10 +285,6 @@
: Builder(B), VMap(vmap), ValueMaps(vmaps), S(*Stmt.getParent()),
Statement(Stmt), ScatteringDomain(domain), P(P) {}
-const Region &BlockGenerator::getRegion() {
- return S.getRegion();
-}
-
Value *BlockGenerator::makeVectorOperand(Value *Operand) {
int VectorWidth = getVectorWidth();
if (Operand->getType()->isVectorTy())
@@ -342,7 +335,7 @@
// Ignore instructions that are referencing ops in the old BB. These
// instructions are unused. They where replace by new ones during
// createIndependentBlocks().
- if (getRegion().contains(OpInst->getParent()))
+ if (S.getRegion().contains(OpInst->getParent()))
return NULL;
return const_cast<Value*>(OldOperand);
More information about the llvm-commits
mailing list