We can't solve the full subgraph isomorphism problem. But we can
allow obvious cases, where for example two instructions of different
types are out of order. Due to them having different types/opcodes,
there is no ambiguity.
Details
Details
- Reviewers
hfinkel
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Hi Hal,
Updated. Good idea about a cutoff, we don't want this to become quadratic.
Cheers,
James
Comment Actions
LGTM.
lib/Transforms/Scalar/LoopRerollPass.cpp | ||
---|---|---|
52 | Please make this default 400, not 4. A search threshold like 4 is likely to cause cases where seemingly innocuous source changes drastically change code performance. We just want to limit the worst case. |
Please make this default 400, not 4. A search threshold like 4 is likely to cause cases where seemingly innocuous source changes drastically change code performance. We just want to limit the worst case.