OSDN Git Service

Add constant folding for long unary operations in opt. compiler.
authorRoland Levillain <rpl@google.com>
Thu, 11 Dec 2014 12:14:33 +0000 (12:14 +0000)
committerRoland Levillain <rpl@google.com>
Wed, 5 Aug 2015 10:01:40 +0000 (11:01 +0100)
commitc90bc7c07f9bd24b5424cfb1e3f064fbae5334d6
treea462fa0cc21489d4250febb6d098aacc7a265279
parentc2abe2fe9036b57c581e3003d0b820d1c54dbd30
Add constant folding for long unary operations in opt. compiler.

Add tests to exercise the constant folding of these
instructions.

Also, prevent Java methods from run-tests exercising the
code generation of these instruction from being inlined,
so that they continue to check the generated code (and
not the code produced by the constant folding pass).

Change-Id: I28efca7cdb5142ac2b6d158ba296fb9136d62481
compiler/optimizing/constant_folding_test.cc
compiler/optimizing/nodes.cc
test/415-optimizing-arith-neg/src/Main.java
test/442-checker-constant-folding/src/Main.java