HomePhabricator

[mlir] Fix scf.for single iteration canonicalization check

Authored by antiagainst on Feb 2 2021, 3:30 PM.

Description

[mlir] Fix scf.for single iteration canonicalization check

We should be check whether lb + step >= ub to determine
whether this is a single iteration. Previously we were
checking lb + lb >= ub.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D95440

Details

Committed
antiagainstFeb 2 2021, 3:30 PM
Reviewer
ftynse
Differential Revision
D95440: [mlir] Fix scf.for single iteration canonicalization check
Parents
rGcf5c517c05e0: [mlir][Vector] Add lowering to LLVM for vector.bitcast
Branches
Unknown
Tags
Unknown