HomePhabricator

[XRay] Align entry and return sleds to 2 byte boundaries

Description

[XRay] Align entry and return sleds to 2 byte boundaries

This should ensure that we can atomically write two bytes (on top of the
retq and the one past it) and have those two bytes not straddle cache
lines.

We also move the label past the alignment instruction so that we can refer
to the actual first instruction, as opposed to potential padding before the
aligned instruction.

Update the tests to allow us to reflect the new order of assembly.

Reviewers: rSerge, echristo, majnemer

Subscribers: llvm-commits, mehdi_amini

Differential Revision: https://reviews.llvm.org/D23101

Details

Committed
dberrisAug 4 2016, 12:37 AM
Differential Revision
D23101: [XRay] Align entry and return sleds to 2 byte boundaries
Parents
rL277700: AMDGPU: Fix a slow test by using basic regalloc
Branches
Unknown
Tags
Unknown