Skip to content

Commit

Permalink
Update polly for removal of CallInst::arg_operands/getNumArgOperands
Browse files Browse the repository at this point in the history
Fixes polly build
  • Loading branch information
rnk committed Oct 8, 2021
1 parent 3ab238a commit 46ef2e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions polly/lib/Analysis/ScopBuilder.cpp
Expand Up @@ -1554,7 +1554,7 @@ void ScopBuilder::addUserAssumptions(
AssumptionCache &AC, DenseMap<BasicBlock *, isl::set> &InvalidDomainMap) {
for (auto &Assumption : AC.assumptions()) {
auto *CI = dyn_cast_or_null<CallInst>(Assumption);
if (!CI || CI->getNumArgOperands() != 1)
if (!CI || CI->arg_size() != 1)
continue;

bool InScop = scop->contains(CI);
Expand Down Expand Up @@ -1860,7 +1860,7 @@ bool ScopBuilder::buildAccessCallInst(MemAccInst Inst, ScopStmt *Stmt) {
case FMRB_OnlyAccessesArgumentPointees: {
auto AccType = ReadOnly ? MemoryAccess::READ : MemoryAccess::MAY_WRITE;
Loop *L = LI.getLoopFor(Inst->getParent());
for (const auto &Arg : CI->arg_operands()) {
for (const auto &Arg : CI->args()) {
if (!Arg->getType()->isPointerTy())
continue;

Expand Down
2 changes: 1 addition & 1 deletion polly/lib/Analysis/ScopDetection.cpp
Expand Up @@ -729,7 +729,7 @@ bool ScopDetection::isValidCallInst(CallInst &CI,
case FMRB_OnlyReadsArgumentPointees:
case FMRB_OnlyAccessesArgumentPointees:
case FMRB_OnlyWritesArgumentPointees:
for (const auto &Arg : CI.arg_operands()) {
for (const auto &Arg : CI.args()) {
if (!Arg->getType()->isPointerTy())
continue;

Expand Down

0 comments on commit 46ef2e0

Please sign in to comment.