[ModuloSchedule] Fix data types in ModuloScheduleExpander::isLoopCarried
authorThomas Raoux <thomasraoux@google.com>
Mon, 9 Dec 2019 15:24:18 +0000 (07:24 -0800)
committerThomas Raoux <thomasraoux@google.com>
Mon, 9 Dec 2019 15:37:00 +0000 (07:37 -0800)
commitcaabb713ea157f8c449c8d3eb00410bbef734a22
tree597660480ece52749f7afc2dcab5fec0bece92e8
parentdecdbc1155f5120554269319b1c77675bac9151c
[ModuloSchedule] Fix data types in ModuloScheduleExpander::isLoopCarried

The cycle values in modulo scheduling results can be negative.
The result of ModuloSchedule::getCycle() must be received as an int type.

Patch by Masaki Arai!

Differential Revision: https://reviews.llvm.org/D71122
llvm/lib/CodeGen/ModuloSchedule.cpp