[all-commits] [llvm/llvm-project] a5a272: [SafeStack] Don't create SCEV min between pointer ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Apr 8 00:44:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a5a272a491406874e5147ba474182d30098ddfd4
      https://github.com/llvm/llvm-project/commit/a5a272a491406874e5147ba474182d30098ddfd4
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-04-08 (Fri, 08 Apr 2022)

  Changed paths:
    M llvm/lib/CodeGen/SafeStack.cpp
    A llvm/test/Transforms/SafeStack/pr54784.ll

  Log Message:
  -----------
  [SafeStack] Don't create SCEV min between pointer and integer (PR54784)

Rather than rewriting the alloca pointer to zero, use
removePointerBase() to drop the base pointer. This will simply bail
if the base pointer is not the alloca. We could try doing something
more fancy here (like dropping the sources not based on the alloca
on the premise that they aren't SafeStack-relevant), but I don't
think that's worthwhile.

Fixes https://github.com/llvm/llvm-project/issues/54784.

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




More information about the All-commits mailing list