This is boringly straight-forward, each iteration we see if
V is some expression that we can look into, and if it has
a single pointer operand, then set V to that operand
and repeat.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
No, i could drop it.
But it may be a good idea to consistently have such cut-offs available for use.
Comment Actions
LGTM
llvm/lib/Analysis/ScalarEvolution.cpp | ||
---|---|---|
3971 | As this is a recurring pattern, I wonder if there's room for something like llvm::get_unique(R &&Range, Getter Fn) in STLExtras. |
As this is a recurring pattern, I wonder if there's room for something like llvm::get_unique(R &&Range, Getter Fn) in STLExtras.