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