Teach LVI to gather control dependant constraints from guards.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
lgtm with some minor comments
lib/Analysis/LazyValueInfo.cpp | ||
---|---|---|
868 ↗ | (On Diff #67538) | Doesn't have to be this change, but please document BBI. |
884 ↗ | (On Diff #67538) | Can this be make conditional on if there are uses of the guard intrinsic? E.g. see HasGuards in ScalarEvolution -- that way clients of LLVM that don't use guards at all won't have to do this linear scan. |
886 ↗ | (On Diff #67538) | Optional -- we could rewrite this as a range for: for (auto &I : make_range(std::reverse_iterator(BBI->getIterator()), BBI->getParent()->rend())) (Not sure if that is clearly better) |
890 ↗ | (On Diff #67538) | Is this clang formatted? |