[turbofan] Mark arm64 cbz/cbnz tbz/tbnz instructions as branch instructions.
authorbaptiste.afsa <baptiste.afsa@arm.com>
Thu, 11 Dec 2014 12:45:27 +0000 (04:45 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 11 Dec 2014 12:45:33 +0000 (12:45 +0000)
commit49baecc42ba686c7719258bd5e2d77c51daddcb6
treeed8a2f7a1bcccaf791df0fe4ba791c07e1b6d98a
parent8897ab893021a30de2c921e7577d22ba60345a53
[turbofan] Mark arm64 cbz/cbnz tbz/tbnz instructions as branch instructions.

The instruction selector now selects pseudo instructions: CompareAndBranch or
TestAndBranch which are associated with their continuations so that generic
code in the code generator will treat them as branch instruction and will be
able to apply optimization like avoiding branches when the code can falltrhough.

R=bmeurer@chromium.org

Review URL: https://codereview.chromium.org/798553002

Cr-Commit-Position: refs/heads/master@{#25773}
src/compiler/arm64/code-generator-arm64.cc
src/compiler/arm64/instruction-codes-arm64.h
src/compiler/arm64/instruction-selector-arm64.cc
test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc