* 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)
commitb2acc51bb28a6cff3789d4eb3ff4547a05b9bbe9
tree8f7b2a8a41d1d8cbbf7443707e067d7c19c8f886
parentf634a103ee3212d1f3030916a6ed204e47c57392
* 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9267 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/X86ISelSimple.cpp