Don't duplicate the work done by a gep into a "bitcast" if the gep has
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 11 Jul 2011 03:43:47 +0000 (03:43 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 11 Jul 2011 03:43:47 +0000 (03:43 +0000)
commitb5a12dd12fa3cd1026e9058a53089c29fb97f2fd
treea309f392d7a4c1a8635d31150489e47a55d4ee74
parentf75ae4c977b8877bb8988109dc081d512874fb37
Don't duplicate the work done by a gep into a "bitcast" if the gep has
more than one use.

Fixes PR10322.

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