Commit c8fb2114 authored by Vladimir Marko's avatar Vladimir Marko
Browse files

ART: Simplify And(TypeConversion<Int64>(x), Const32).

Reorder the And and TypeConversion as
    TypeConversion<Int64>(And(x, Const32))
for 32-bit constant Const32.

For example, java.io.Bits.getLong(byte[] b, int off) yields
better generated code on 32-bit platforms for each of its
eight "b[off + .] & 0xFFL" sequences.

Also remove obsolete "doThrow" code that attempts to prevent
inlining; the $noinline$ tag is now honored by the compiler.

Test: Added tests to 458-checker-instruct-simplification.
Test: m test-art-host-gtest
Test: testrunner.py --host
Change-Id: Ib6e413517daa5206764653ebb6c4687a4c68d02d
parent 5adf26c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment