[all-commits] [llvm/llvm-project] 6d3657: [SROA] Improve handleling of assumes bundles by SROA

Ralender via All-commits all-commits at lists.llvm.org
Fri Aug 28 12:57:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d3657417e0c75611fc52c4adefa0cdf27e89fb1
      https://github.com/llvm/llvm-project/commit/6d3657417e0c75611fc52c4adefa0cdf27e89fb1
  Author: Tyker <tyker1 at outlook.com>
  Date:   2020-08-28 (Fri, 28 Aug 2020)

  Changed paths:
    M llvm/include/llvm/IR/Value.h
    M llvm/lib/IR/Value.cpp
    M llvm/lib/Transforms/Scalar/SROA.cpp
    A llvm/test/Transforms/SROA/assume.ll
    M llvm/test/Transforms/SROA/ignore-droppable.ll

  Log Message:
  -----------
  [SROA] Improve handleling of assumes bundles by SROA

This patch fixes this crash https://gcc.godbolt.org/z/Ps8d1e
And gives SROA the ability to remove assumes if it allows promoting an alloca to register
Without removing assumes when it can't promote to register.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list