Skip to content

Commit

Permalink
[4] Review comments handled
Browse files Browse the repository at this point in the history
  • Loading branch information
ANSHUMAN TRIPATHY authored and ANSHUMAN TRIPATHY committed Mar 20, 2020
1 parent 5f7b50a commit 20437f9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/te/schedule/message_passing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -559,11 +559,9 @@ void PassUpBoundCheck(const Stage& s,
bool IsRangeSame(const Range input_1, const Range input_2) {
arith::Analyzer analyzer;
if (input_1.same_as(input_2)) return true;
if (!analyzer.CanProve(input_1->min == input_2->min)
|| !analyzer.CanProve(input_1->extent == input_2->extent)) {
return false;
}
return true;

return (analyzer.CanProve(input_1->min == input_2->min)
&& analyzer.CanProve(input_1->extent == input_2->extent));
}

std::vector<PrimExpr> MakeBoundCheck(
Expand Down

0 comments on commit 20437f9

Please sign in to comment.