Conditions for dominating branches and llvm.assumes are already
collected. This also adds conditions from guards.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This comment was removed by caojoshua.
Comment Actions
We should add support for guard intrinsics to AssumptionCache instead. For all practical purposes, they need the same handling, and it makes little sense that we keep implementing separate handling for assumes and guards each time.
Comment Actions
I agree with this thought, but this adds a lot of discussion and investigation to a simple PR. I've created https://github.com/llvm/llvm-project/issues/59901 to discuss this issue (can you leave your thoughts in the thread?), and I would not mind personally working on it.
In my opinion, we can still land this review, and work on this as a separate issue. Does this make sense?
Comment Actions
Sure, as long as someone is working on fixing this properly, we can land this in the meantime. LGTM
llvm/lib/Analysis/ScalarEvolution.cpp | ||
---|---|---|
15024 | const SCEV * |
const SCEV *