jit: generic approach to eliminate load;truncation sequences.
commitcba997420ff3fe89ac8b541ce3348cc9104244ad
authorChristoph Muellner <christoph.muellner@theobroma-systems.com>
Wed, 19 Apr 2017 03:58:20 +0000 (18 20:58 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 19 Apr 2017 04:00:33 +0000 (18 21:00 -0700)
tree545ba6f316b0318e462f1d7752d8f5eb8325800c
parentef6171cabe7658400fb599b6a3dc710a31175da6
jit: generic approach to eliminate load;truncation sequences.

Summary:
This is a generic approach to eliminate load;truncation sequences (and replace them by loads of target size).

As this optimization is endianess-dependent I've decided to add a
constexpr-based endianess detection utility to HHVM.

mxw : please review
dave-estes jim-saxman swalk-cavium : please test if possible
Notification also for ptomsich
Closes https://github.com/facebook/hhvm/pull/7778

Differential Revision: D4868639

Pulled By: mxw

fbshipit-source-id: c798d87818411b8377f2d416341c6b45c84744c3
hphp/runtime/vm/jit/vasm-simplify.cpp