Teach instruction combining about the extractvalue. It can succesfully fold
authorMatthijs Kooijman <matthijs@stdin.nl>
Wed, 11 Jun 2008 14:05:05 +0000 (14:05 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Wed, 11 Jun 2008 14:05:05 +0000 (14:05 +0000)
commita9012eca1a5121ae9ed9c0522c734319b2e0d17f
treebd49c0bcfbbcd1be64b6b7da5b93fcbd9255c78d
parent0039adb5148f3a2c878c84f09268a58d0478e2ad
Teach instruction combining about the extractvalue. It can succesfully fold
useless insert-extract chains, similar to how it folds them for vectors.

Add a testcase for this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52217 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/extractvalue.ll [new file with mode: 0644]