[all-commits] [llvm/llvm-project] e1b3d7: Account for memory locations in DIExpression::crea...

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Thu Oct 27 00:30:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e1b3d7ab44e19d5a67f9d1a05ea503d23b4c0dd5
      https://github.com/llvm/llvm-project/commit/e1b3d7ab44e19d5a67f9d1a05ea503d23b4c0dd5
  Author: OCHyams <orlando.hyams at sony.com>
  Date:   2022-10-27 (Thu, 27 Oct 2022)

  Changed paths:
    M llvm/lib/IR/DebugInfoMetadata.cpp
    M llvm/unittests/IR/MetadataTest.cpp

  Log Message:
  -----------
  Account for memory locations in DIExpression::createFragmentExpression

createFragmentExpression rejects expressions containing certain ops, like
DW_OP_plus, that may cause the expression to compute a value that can't be
split.

Teach createFragmentExpression that the value loaded from an address computed
using those ops is safe to split.

Update a unittest to account for and test this change.

Reviewed By: StephenTozer

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




More information about the All-commits mailing list