Skip to content
Commit fd7eee64 authored by Lorenzo Chelini's avatar Lorenzo Chelini Committed by Nicolas Vasilache
Browse files

scf::ForOp: Fold away iterator arguments with no use and for which the...

scf::ForOp: Fold away iterator arguments with no use and for which the corresponding input is yielded

Enhance 'ForOpIterArgsFolder' to remove unused iteration arguments in a
scf::ForOp. If the block argument corresponding to the given iterator has no
use and the yielded value equals the input, we fold it away.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D98503
parent 67824179
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment