[llvm-commits] [llvm] r52315 - in /llvm/trunk: include/llvm/Analysis/ValueTracking.h lib/Analysis/ValueTracking.cpp lib/Transforms/Scalar/InstructionCombining.cpp

Matthijs Kooijman matthijs at stdin.nl
Tue Jun 24 00:57:54 PDT 2008


Hi Chris,

> Can't passes just insert a new ExtractValueInst and expect instcombine  
> to simplify stuff away?
Currently, this method is only used by SCCP, IPConstProp and InstCombine
itself. The first two use it to propagate constants or known values out of
functions (ie, propage known return values). This means they really have to
try to find the actual value instead of just inserting extractvalue.

We could probably reduce this to only look at the first level of inserts or
something, but that would require always running instcombine before these
passes (which ends up being slower, I would expect) and causes some
simplifications to be left out.

So, I don't think changing this is the way to go.

Gr.

Matthijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080624/aad06897/attachment.sig>


More information about the llvm-commits mailing list