[polly] Fix cppcheck SA comments reported in #82263 (#85749)

This patch addresses the (performance )suggestions by checkcpp static
analyzer for couple of files. Here we use const reference for the
suggested function arguments.
Fixes #82263.

GitOrigin-RevId: 4c6ae8ebb69525118e7fc3cf57908e9de74ebef9
2 files changed