* Multiplications by 2^X are turned into shifts. This factors code out of the
authorChris Lattner <sabre@nondot.org>
Sun, 19 Oct 2003 21:09:10 +0000 (21:09 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 19 Oct 2003 21:09:10 +0000 (21:09 +0000)
commitbf87734fa096f082c992802b131383b703a1f7f5
treee6053b37796b5427f17cd4873c2bd03253b52d5a
parent55a8ef0cc8a9eb67d7f551c95cfa57abc1336cca
* Multiplications by 2^X are turned into shifts.  This factors code out of the
  getelementptr code path for use by other code paths (like malloc and alloca).
* Optimize comparisons with zero
* Generate neg, not, inc, and dec instructions, when possible.

This gives some code size wins, which might translate into performance.  We'll
see tommorow in the nightly tester.

llvm-svn: 9267
llvm/lib/Target/X86/InstSelectSimple.cpp