Fix some unused warnings in polly

llvm-svn: 312755
This commit is contained in:
Reid Kleckner 2017-09-07 22:46:51 +00:00
parent 3cdf713fd2
commit b79e7a6897
2 changed files with 4 additions and 17 deletions

View File

@ -237,11 +237,10 @@ bool MaximalStaticExpander::isExpandable(
for (auto Write : Writes) {
auto MapDeps = filterDependences(S, Dependences, Write);
MapDeps.foreach_map(
[&StmtDomain, &WriteDomain](isl::map Map) -> isl::stat {
WriteDomain = WriteDomain.add_set(Map.range());
return isl::stat::ok;
});
MapDeps.foreach_map([&WriteDomain](isl::map Map) -> isl::stat {
WriteDomain = WriteDomain.add_set(Map.range());
return isl::stat::ok;
});
}
// For now, read from original scalar is not possible.

View File

@ -258,18 +258,6 @@ isl::union_map polly::filterKnownValInst(const isl::union_map &UMap) {
return Result;
}
static std::string printInstruction(Instruction *Instr,
bool IsForDebug = false) {
std::string Result;
raw_string_ostream OS(Result);
Instr->print(OS, IsForDebug);
OS.flush();
size_t i = 0;
while (i < Result.size() && Result[i] == ' ')
i += 1;
return Result.substr(i);
}
ZoneAlgorithm::ZoneAlgorithm(const char *PassName, Scop *S, LoopInfo *LI)
: PassName(PassName), IslCtx(S->getSharedIslCtx()), S(S), LI(LI),
Schedule(S->getSchedule()) {