summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-09-11 17:34:19 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-09-11 17:34:19 +0000
commit8239eaab99f9995656c2414127a47fae93396e9f (patch)
treeace45c39e886410bf7d3e6860bb19b2b8c188817 /llvm/lib/Target
parentee0a49c8021e1280c4dc23313b0cc7d55a3a871f (diff)
downloadbcm5719-llvm-8239eaab99f9995656c2414127a47fae93396e9f.tar.gz
bcm5719-llvm-8239eaab99f9995656c2414127a47fae93396e9f.zip
Add DAG combine for shl + add of constants.
Do (shl (add x, c1), c2) -> (add (shl x, c2), c1 << c2) This is already done for multiplies, but since multiplies by powers of two are turned into shifts, we also need to handle it here. This might want checks for isLegalAddImmediate to avoid transforming an add of a legal immediate with one that isn't. llvm-svn: 217610
Diffstat (limited to 'llvm/lib/Target')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud