[all-commits] [llvm/llvm-project] 3a2793: [LTT] Don't attempt to lower type tests used only ...

Teresa Johnson via All-commits all-commits at lists.llvm.org
Sat Feb 6 09:02:44 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a27933ec2857d37b9be298cb817933c2833c230
      https://github.com/llvm/llvm-project/commit/3a27933ec2857d37b9be298cb817933c2833c230
  Author: Teresa Johnson <tejohnson at google.com>
  Date:   2021-02-06 (Sat, 06 Feb 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/LowerTypeTests.cpp
    A llvm/test/Transforms/LowerTypeTests/pr48245.ll

  Log Message:
  -----------
  [LTT] Don't attempt to lower type tests used only by assumes

Type tests used only by assumes were original for devirtualization, but
are meant to be kept through the first invocation of LTT so that they
can be used for additional optimization. In the regular LTO case where
the IR is analyzed we may find a resolution for the type test and end up
rewriting the associated vtable global, which can have implications on
section splitting. Simply ignore these type tests.

Fixes PR48245.

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




More information about the All-commits mailing list