Transform (extractvalue (load P), ...) to (load (gep P, 0, ...)) if the load has...
authorFrits van Bommel <fvbommel@gmail.com>
Mon, 29 Nov 2010 21:56:20 +0000 (21:56 +0000)
committerFrits van Bommel <fvbommel@gmail.com>
Mon, 29 Nov 2010 21:56:20 +0000 (21:56 +0000)
commit34ceb4db22c4af3e63ddbc94c56ebb1fec1b918d
tree99d981f495cc708992b78617940827b588e3b53c
parentd092a87ba3f905a6801a0bdf816267329cf0391c
Transform (extractvalue (load P), ...) to (load (gep P, 0, ...)) if the load has no other uses, shrinking the load.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120323 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstructionCombining.cpp
test/Transforms/InstCombine/extractvalue.ll