llvm-6502/lib
Duraid Madina b2322561cb * Add code to reduce multiplies by constant integers to shifts, adds and
subtracts. This is a very rough and nasty implementation of Lefevre's
  "pattern finding" algorithm. With a few small changes though, it should
  end up beating most other methods in common use, regardless of the size
  of the constant (currently, it's often one or two shifts worse)

  TODO: rewrite it so it's not hideously ugly (this is a translation from
        perl, which doesn't help ;)
        bypass most of it for multiplies by 2^n+1
	(eventually) teach it that some combinations of shift+add are
	cheaper than others (e.g. shladd on ia64, scaled adds on alpha)
	get it to try multiple booth encodings in search of the cheapest
	routine
	make it work for negative constants

  This is hacked up as a DAG->DAG transform, so once I clean it up I hope
  it'll be pulled out of here and put somewhere else. The only thing backends
  should really have to worry about for now is where to draw the line
  between using this code vs. going ahead and doing an integer multiply
  anyway.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21560 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-26 07:23:02 +00:00
..
Analysis Correctly handle global-argument aliases induced in main 2005-04-25 19:16:31 +00:00
Archive Remove trailing whitespace 2005-04-21 21:13:18 +00:00
AsmParser * Remove trailing whitespace 2005-04-21 21:10:11 +00:00
Bytecode Convert tabs to spaces 2005-04-22 04:01:18 +00:00
CodeGen Fold (X > -1) | (Y > -1) --> (X&Y > -1) 2005-04-26 01:18:33 +00:00
Debugger Remove trailing whitespace 2005-04-21 22:36:52 +00:00
ExecutionEngine Convert tabs to spaces 2005-04-22 04:08:30 +00:00
Linker Remove trailing whitespace 2005-04-21 22:55:34 +00:00
Support * Order #includes as per style guide 2005-04-22 19:13:22 +00:00
System Silence gcc-4.0.0 warnings. 2005-04-22 17:56:01 +00:00
Target * Add code to reduce multiplies by constant integers to shifts, adds and 2005-04-26 07:23:02 +00:00
Transforms * Implement StrLenOptimization 2005-04-26 05:24:00 +00:00
VMCore Make dominates(A,B) work with post dominators. Patch contributed by 2005-04-25 20:50:33 +00:00
Makefile Add the Linker library 2004-11-14 21:54:41 +00:00