[llvm-commits] [llvm] r71262 - in /llvm/trunk: include/llvm/Analysis/ScalarEvolution.h lib/Analysis/ScalarEvolution.cpp

Nick Lewycky nicholas at mxc.ca
Sat May 9 09:34:25 PDT 2009


Duncan Sands wrote:
> Hi Dan,
> 
>> Fix another bug in r71252. This code supports GetElementPtr
>> constant exprs as well as instructions.
> ...
>> -    SCEVHandle createNodeForGEP(GetElementPtrInst *GEP);
>> +    SCEVHandle createNodeForGEP(User *GEP);
> 
> can't you use a Value* here?  That covers instructions as
> well as constants.

Hm? Both Constants and Instructions are derived from User. How does 
moving to Value help?

Nick



More information about the llvm-commits mailing list