summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/AMDGPU')
-rw-r--r--llvm/lib/Target/AMDGPU/R600AsmPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/R600AsmPrinter.cpp b/llvm/lib/Target/AMDGPU/R600AsmPrinter.cpp
index 37ecbf7a869..ea247a07329 100644
--- a/llvm/lib/Target/AMDGPU/R600AsmPrinter.cpp
+++ b/llvm/lib/Target/AMDGPU/R600AsmPrinter.cpp
@@ -103,6 +103,10 @@ void R600AsmPrinter::EmitProgramInfoR600(const MachineFunction &MF) {
bool R600AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
+
+ // Functions needs to be cacheline (256B) aligned.
+ MF.ensureAlignment(8);
+
SetupMachineFunction(MF);
MCContext &Context = getObjFileLowering().getContext();
OpenPOWER on IntegriCloud