[all-commits] [llvm/llvm-project] bf5860: [PowerPC] Make sure the first probe is full size o...

bzEq via All-commits all-commits at lists.llvm.org
Tue Jun 8 23:35:55 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf58600badb1138a501ad81b07298207a7a64b2a
      https://github.com/llvm/llvm-project/commit/bf58600badb1138a501ad81b07298207a7a64b2a
  Author: Kai Luo <lkail at cn.ibm.com>
  Date:   2021-06-09 (Wed, 09 Jun 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
    M llvm/test/CodeGen/PowerPC/pr46759.ll
    M llvm/test/CodeGen/PowerPC/stack-clash-prologue-nounwind.ll
    M llvm/test/CodeGen/PowerPC/stack-clash-prologue.ll

  Log Message:
  -----------
  [PowerPC] Make sure the first probe is full size or is the last probe when stack is realigned

When `-fstack-clash-protection` is enabled and stack has to be realigned, some parts of redzone is written prior the probe, so probe might overwrite content already written in redzone. To avoid it, we have to make sure the first probe is at full probe size or is the last probe so that we can skip redzone.

It also fixes violation of ABI under PPC where `r1` isn't updated atomically.

This fixes https://bugs.llvm.org/show_bug.cgi?id=49903.

Reviewed By: jsji

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




More information about the All-commits mailing list