[all-commits] [llvm/llvm-project] eee807: [clang][Interp][NFCI] Remove an unnecessary DupPtr op

Timm Bäder via All-commits all-commits at lists.llvm.org
Wed Jan 25 08:11:18 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eee8075f57f018e047b5bc8923b0284a6f62ea3e
      https://github.com/llvm/llvm-project/commit/eee8075f57f018e047b5bc8923b0284a6f62ea3e
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2023-01-25 (Wed, 25 Jan 2023)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeExprGen.cpp

  Log Message:
  -----------
  [clang][Interp][NFCI] Remove an unnecessary DupPtr op

When initializing a primitive array, we don't need to dup the base
pointer for every element.


  Commit: c68af565ff0c2fdc5537e9ac0c2d7c75df44b035
      https://github.com/llvm/llvm-project/commit/c68af565ff0c2fdc5537e9ac0c2d7c75df44b035
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2023-01-25 (Wed, 25 Jan 2023)

  Changed paths:
    M clang/lib/AST/Interp/InterpFrame.cpp
    M clang/lib/AST/Interp/InterpFrame.h

  Log Message:
  -----------
  [clang][Interp][NFC] Cast in InterpFrame::localBlock

We know we save a Block* here, so do the cast there instead of
everywhere we're calling this function.


Compare: https://github.com/llvm/llvm-project/compare/4ef085c57210...c68af565ff0c


More information about the All-commits mailing list