summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorRoland Levillain <rpl@google.com>2015-08-05 10:21:34 +0100
committerRoland Levillain <rpl@google.com>2015-08-05 11:01:53 +0100
commit9867bc722f7c41e07a95397bc08b790cd21dc758 (patch)
tree6bad203433f24a5556fe98e6480326ed30956c75 /compiler/optimizing/graph_visualizer.cc
parentc90bc7c07f9bd24b5424cfb1e3f064fbae5334d6 (diff)
Have constant folding be more flexible.
- Have Evaluate methods take as argument(s) and return value instances of HConstant (instead of built-in 32- or 64-bit integer values), to let the evaluated instruction choose the type of the statically evaluated node; for instance, art::HEqual::Evaluate shall return a HIntConstant node (as implementation of a Boolean constant) whatever the type of its inputs (a pair of HIntConstant or a pair of HLongConstant). - Split the evaluation job from the operation logic: the former is addressed by Evaluate methods, while the latter is done by a generic Compute method. - Adress valid BinOp(int, long) and BinOp(long, int) cases. - Add a constructor to art::HIntConstant to build an integer constant from a `bool` value. Change-Id: If84b6fe8406bb94ddb1aa8b02e36628dff526db3
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions