[llvm-commits] [Review request] Constant folding insertvalue instructions.

Frits van Bommel fvbommel at gmail.com
Sat Nov 27 14:05:18 PST 2010


Okay, so this is a bit embarrassing. I somehow completely missed
ConstantExpr::get{Insert,Extract}Value() methods. Instead of
reinventing the wheel, here's a much simpler patch that uses those
methods to add both insertvalue and extractvalue folding to
ConstantFoldInstruction().

Okay to commit?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 005-constfold-insert-extract-value.patch
Type: text/x-patch
Size: 1073 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101127/5096a7b0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 002-constprop-insertvalue-test.patch
Type: text/x-patch
Size: 2376 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101127/5096a7b0/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 004-constprop-extractvalue-test.patch
Type: text/x-patch
Size: 1756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101127/5096a7b0/attachment-0002.bin>


More information about the llvm-commits mailing list