Quentin Colombet 50d4008b47 [LSR] Canonicalize reg1 + ... + regN into reg1 + ... + 1*regN.
This commit introduces a canonical representation for the formulae.
Basically, as soon as a formula has more that one base register, the scaled
register field is used for one of them. The register put into the scaled
register is preferably a loop variant.
The commit refactors how the formulae are built in order to produce such
representation.
This yields a more accurate, but still perfectible, cost model.

<rdar://problem/16731508>


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209230 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-20 19:25:04 +00:00
..
2014-05-16 19:35:39 +00:00
2014-05-19 19:45:57 +00:00
2014-05-16 19:35:39 +00:00
2014-05-16 19:35:39 +00:00
2014-05-19 19:45:57 +00:00
2014-05-20 17:40:03 +00:00