Keep short strings inline
commit1920d731cee2011b4793e15ad2e02e8f5b24d7a4
authorAaron Orenstein <aorenste@meta.com>
Fri, 17 Feb 2023 21:00:26 +0000 (17 13:00 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 17 Feb 2023 21:00:26 +0000 (17 13:00 -0800)
tree145159ee423f9dd7c57a64b8d0475b7fd3df81ab
parentac1a26ae2dbe5fa25bf5c3de4e8a35bfa74aa803
Keep short strings inline

Summary:
Keeping short strings inline makes it easier for humans to read the emitted textual files - instead of emitting all strings as SSA vars only emit the long ones.

In the future we may want to control this with a command-line option.

Reviewed By: edwinsmith

Differential Revision: D42443493

fbshipit-source-id: 97da0915e2a018e3971083b5169417db28ef12f6
hphp/hack/src/hackc/ir/conversions/textual/lower/constants.rs
hphp/hack/src/hackc/test/infer/basic.hack
hphp/hack/src/hackc/test/infer/class.hack
hphp/hack/src/hackc/test/infer/enum.hack
hphp/hack/src/hackc/test/infer/instr.hack
hphp/hack/src/hackc/test/infer/member_op.hack
hphp/hack/src/hackc/test/infer/sswitch.hack
hphp/hack/src/hackc/test/infer/try_catch.hack
hphp/hack/src/hackc/test/infer/type_const.hack