[llvm] [HashRecognize] Track visited in ValueEvolution (PR #147812)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 14 02:01:57 PDT 2025


artagnon wrote:

> > > Instead of a set, only track the number of instructions. This would work if the instructions are visited once - is that the case?
> > 
> > 
> > No, the instructions are visited trip-count times.
> 
> If that's exactly trip-count times per instructions, we could compare against the number multiplied by TC.

True, but the code would become a lot more cryptic, with various ++NumVisited statements.

https://github.com/llvm/llvm-project/pull/147812


More information about the llvm-commits mailing list