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

Commit 95b854a

Browse files
author
Sven Verdoolaege
committed
simplify operator*(isl::val V, isl::aff A)
There is no point in creating an isl::aff from an isl::val only to have the constant value extracted again inside isl.
1 parent 455f2fa commit 95b854a

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
@@ -30,8 +30,7 @@ inline isl::aff operator*(isl::aff A, int i) {
3030
}
3131

3232
inline isl::aff operator*(isl::val V, isl::aff A) {
33-
isl::aff AV(A.get_local_space().domain(), V);
34-
return A.mul(AV);
33+
return A.scale(V);
3534
}
3635

3736
inline isl::aff operator*(isl::aff A, isl::val V) {

0 commit comments

Comments
 (0)