Teach LVI to gather control dependant constraints from guards.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
lgtm with some minor comments
lib/Analysis/LazyValueInfo.cpp | ||
---|---|---|
868 | Doesn't have to be this change, but please document BBI. | |
884 | 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 | 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 | Is this clang formatted? |
Doesn't have to be this change, but please document BBI.