[LLVMdev] Removal of ConstantExprs

Chris Lattner sabre at nondot.org
Tue Jun 24 11:02:15 PDT 2008


On Tue, 24 Jun 2008, Matthijs Kooijman wrote:
>>> anything, since the GEP is still used by the bitcast.
>> removeDeadConstantUsers removes both of them.  Existing clients call
>> removeDeadConstantUsers and then recheck to see if the use count is zero.
>> If not, there was some real user that can't be removed.
> Ah, in that case, I should just modify my pass to call removeDeadConstantUsers
> before inspecting the global.

Exactly, that should work!  Thanks for everything Matthijs, I really 
appreciate everything that you've been working on,

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list