[all-commits] [llvm/llvm-project] 7c0a2d: [clang][Interp][NFC] Use StorePop for assignments ...

Timm Bäder via All-commits all-commits at lists.llvm.org
Sun Nov 6 22:58:36 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c0a2d9cda996a04c9eb55244a0ebf57545de849
      https://github.com/llvm/llvm-project/commit/7c0a2d9cda996a04c9eb55244a0ebf57545de849
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-11-07 (Mon, 07 Nov 2022)

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

  Log Message:
  -----------
  [clang][Interp][NFC] Use StorePop for assignments with DiscardResult

If we don't need the result anyway, use StorePop, instead of a Store+Pop
combination. That way we save one instruction and not using the result
is the common case anyway.




More information about the All-commits mailing list