Motivated by the removal done in D109782. This implements the correct flag part generically.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Analysis/ScalarEvolution.cpp | ||
---|---|---|
2403 | I think this only covers a subset of cases because it assumes the udiv is the first operand. Due to complexity sorting, this is a given for the case where Y is SCEVUnknown, but wouldn't we want this to trigger also for something like 3 * (udiv X, 3)? | |
2404 | I believe UDiv always has two operands, multi operand udiv isn't well-defined... |
Comment Actions
additional test update from broader scope - should have finished for ninja check to finish.
I think this only covers a subset of cases because it assumes the udiv is the first operand. Due to complexity sorting, this is a given for the case where Y is SCEVUnknown, but wouldn't we want this to trigger also for something like 3 * (udiv X, 3)?