[llvm-commits] [llvm] r49795 - in /llvm/trunk: include/llvm/CodeGen/ScheduleDAG.h include/llvm/CodeGen/SelectionDAG.h include/llvm/CodeGen/SelectionDAGNodes.h lib/CodeGen/SelectionDAG/DAGCombiner.cpp lib/CodeGen/SelectionDAG/LegalizeDAG.cpp lib/C

Dan Gohman gohman at apple.com
Thu Apr 17 11:46:01 PDT 2008


On Apr 17, 2008, at 7:14 AM, Roman Levenstein wrote:
>
> So,  we should have iterators that iterate only over the users of a
> specific value. Do you mean something like providing a constructor
> parameter with the specific value number and then having the iterator
> pointing only to the uses of this value and skipping everything not
> matching this value?
>
> I attach a possible patch implementing this. Please have a look and
> tell me if this is what you mean.

I think so. I don't have time at the moment to look at it in detail,
but if you can rewrite hasAnyUseOfValue using this, then it's quite
likely a good direction :-).

Dan




More information about the llvm-commits mailing list