Make better use of ConcatStrInt and ConcatIntStrnightly-2019.05.05
commitc64672ad8c01ef3f150bd5020a29edea85defbb8
authorMark Williams <mwilliams@fb.com>
Sun, 5 May 2019 01:14:49 +0000 (4 18:14 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Sun, 5 May 2019 01:18:16 +0000 (4 18:18 -0700)
tree50b97a4205298c2381d65baa187a458994fc79b8
parent7368258e598fec56d64af605a7ba720841680f8a
Make better use of ConcatStrInt and ConcatIntStr

Summary:
If one of the inputs is an int, its better to cast the other input to
string and call Concat*Int* than to cast both inputs to string.

Reviewed By: ricklavoie

Differential Revision: D15212062

fbshipit-source-id: 0e3da5944b2d24fb6e39216a39c1bd27800b17bc
hphp/runtime/vm/jit/irgen-arith.cpp