OSDN Git Service

Subzero. ARM32. Implements the Availability Optimization.
authorJohn Porto <jpp@chromium.org>
Wed, 28 Oct 2015 12:47:58 +0000 (05:47 -0700)
committerJohn Porto <jpp@chromium.org>
Wed, 28 Oct 2015 12:47:58 +0000 (05:47 -0700)
commit562233c890ea6d2a834962edf3ccf9db14356683
tree4023044df7e1fb3236890270e42c8d2beb73bac1
parentaa0b1a176f6c3306be3e95374d72e735bab2bbab
Subzero. ARM32. Implements the Availability Optimization.

Implements the Availability optimization:

a = b
x = f(a, c)

becomes

a = b
x = f(b, c)

This only triggers if b is an infinite-weight temporary, and it
prevents a potential spill at the cost of higher register pressure.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=4076
R=stichnot@chromium.org

Review URL: https://codereview.chromium.org/1424873003 .
src/IceTargetLoweringARM32.cpp
tests_lit/llvm2ice_tests/callindirect.pnacl.ll