[PATCH] D86977: [IRSim][IROutliner] Limit to extracting regions that only require inputs
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 18 11:17:52 PDT 2020
paquette added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/IROutliner.cpp:245
+ for (OutlinableRegion *Region : Regions)
+ if (!collectRegionsConstants(*Region, GVNToConstant, NotSame)) {
+ IgnoreGroup = true;
----------------
Instead of having `IgnoreGroup` as a member variable, would it make sense to have this return a bool?
Then this entire function could probably just be one `all_of`.
```
DenseMap<unsigned, Constant *> Dummy;
return all_of(Regions, [&Dummy, &NotSame](OutlinableRegion *Region){return collectRegionsConstants(...);});
```
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86977/new/
https://reviews.llvm.org/D86977
More information about the llvm-commits
mailing list