Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 5e425ac

Browse files
author
Sven Verdoolaege
committed
operator+(int i, isl::aff A): call isl::aff:add_constant_si
There is no need to create an extra isl::val object here.
1 parent 7e84859 commit 5e425ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tc/external/detail/islpp-inl.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ inline isl::aff operator/(isl::aff A, int i) {
4242
}
4343

4444
inline isl::aff operator+(int i, isl::aff A) {
45-
isl::ctx ctx = A.get_ctx();
46-
return A + isl::val(ctx, i);
45+
return A.add_constant_si(i);
4746
}
4847

4948
inline isl::aff operator+(isl::aff A, isl::val v) {

0 commit comments

Comments
 (0)