Update polly for removal of CallInst::arg_operands/getNumArgOperands
Fixes polly build
GitOrigin-RevId: 46ef2e0bf995d8db4cbdf69f3d1bbc2487030ba0
diff --git a/lib/Analysis/ScopBuilder.cpp b/lib/Analysis/ScopBuilder.cpp
index 60d4183..35e91b4 100644
--- a/lib/Analysis/ScopBuilder.cpp
+++ b/lib/Analysis/ScopBuilder.cpp
@@ -1554,7 +1554,7 @@
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);
@@ -1860,7 +1860,7 @@
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;
diff --git a/lib/Analysis/ScopDetection.cpp b/lib/Analysis/ScopDetection.cpp
index 045d0f9..393af1e 100644
--- a/lib/Analysis/ScopDetection.cpp
+++ b/lib/Analysis/ScopDetection.cpp
@@ -729,7 +729,7 @@
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;