Teach MatchScaledValue to handle Scales by 1 with MatchAddr (which
authorChris Lattner <sabre@nondot.org>
Tue, 25 Nov 2008 07:25:26 +0000 (07:25 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 25 Nov 2008 07:25:26 +0000 (07:25 +0000)
commit3b48501adc540c834fe33bf2695377c7e1189d3c
treea7ff089fb79361107b7d878ad0ee7427a9b1821c
parent88a5c832ac71eb31d2b1bc143817af9248f4c549
Teach MatchScaledValue to handle Scales by 1 with MatchAddr (which
can recursively match things) and scales by 0 by ignoring them.
This triggers once in 403.gcc, saving 1 (!!!!) instruction in the
whole huge app.

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