[all-commits] [llvm/llvm-project] 6cf817: Don't perform dynamic_cast optimization at -O0.

Richard Smith via All-commits all-commits at lists.llvm.org
Mon Jul 24 22:25:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6cf8179661997f8d512cdf944f4f4c0c01cb37c1
      https://github.com/llvm/llvm-project/commit/6cf8179661997f8d512cdf944f4f4c0c01cb37c1
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2023-07-24 (Mon, 24 Jul 2023)

  Changed paths:
    M clang/lib/CodeGen/CGExprCXX.cpp
    M clang/test/CodeGenCXX/dynamic-cast-exact-disabled.cpp
    M clang/test/CodeGenCXX/dynamic-cast-exact.cpp

  Log Message:
  -----------
  Don't perform dynamic_cast optimization at -O0.

It seems preferable to avoid this optimization under -O0, and we're not
set up to emit speculative references to vtables at -O0 in general
anyway.

For #64088.




More information about the All-commits mailing list