Delay scalarizing Add*ElemC until the peephole optimizer
commit2634853cbd06a04085cf627609cc0f5625431cf8
authorMark Williams <mwilliams@fb.com>
Sat, 20 Oct 2018 22:11:01 +0000 (20 15:11 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Sat, 20 Oct 2018 22:13:12 +0000 (20 15:13 -0700)
tree47b82319efbfcc7d35f021d2d906164c5160129d
parent8ee61ea07942e57727aa03ef8550f0290196b58a
Delay scalarizing Add*ElemC until the peephole optimizer

Summary:
Augment the ConcatPeephole to also deal with Add*ElemC (and rename it
to AppendPeephole).

Reviewed By: ricklavoie

Differential Revision: D10476451

fbshipit-source-id: 0d7bdd01eecacc8ea69dcf3eb4c8ec82bd25dc1e
hphp/hhbbc/optimize.cpp
hphp/hhbbc/peephole.cpp
hphp/hhbbc/peephole.h
hphp/hhbbc/type-system.cpp
hphp/hhbbc/type-system.h