[all-commits] [llvm/llvm-project] 9297af: MCExpr: Simplify and optimize equated symbol evalu...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Jun 1 14:43:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9297af1c419e1a77681f9832c5404a124a6a4369
      https://github.com/llvm/llvm-project/commit/9297af1c419e1a77681f9832c5404a124a6a4369
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-06-01 (Sun, 01 Jun 2025)

  Changed paths:
    M llvm/lib/MC/MCExpr.cpp

  Log Message:
  -----------
  MCExpr: Simplify and optimize equated symbol evaluation

Sym.isInSection() calls findAssociatedFragment, which traverses the
expression tree. This can be replaced by calling evaluateAsRelocatableImpl
first and then inspecting the MCValue result.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list