OSDN Git Service

move some code, check to see if the input to the GEP is a bitcast
authorChris Lattner <sabre@nondot.org>
Fri, 9 Jan 2009 04:53:57 +0000 (04:53 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 9 Jan 2009 04:53:57 +0000 (04:53 +0000)
commit5840779cc990ffb81045ebfb4f5ef6d1d90ee3a6
tree9518af50bdca4c95ebeee78a149634ea85bb2eaf
parent5446274bd242e1f23547ce57aa4d411e46e9acb8
move some code, check to see if the input to the GEP is a bitcast
(which is constant time and cheap) before checking hasAllZeroIndices.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61976 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp