[PATCH] D147431: [Assignment Tracking][SROA] Handle createFragmentExpression failure

Orlando Cazalet-Hyams via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 3 03:16:29 PDT 2023


Orlando created this revision.
Orlando added reviewers: jmorse, StephenTozer, scott.linder, jryans.
Orlando added a project: debug-info.
Herald added a subscriber: hiraditya.
Herald added a project: All.
Orlando requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

createFragmentExpression will fail if it determines that the expression cannot be split over fragments. Handle this case in SROA. Similarly to D147312 <https://reviews.llvm.org/D147312> this should be a rare occurrence as the `dbg.assign` will usually reference the `Value` being stored without modifying it with a `DIExpression`.


https://reviews.llvm.org/D147431

Files:
  llvm/lib/Transforms/Scalar/SROA.cpp
  llvm/test/DebugInfo/Generic/assignment-tracking/sroa/fail-fragment.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147431.510440.patch
Type: text/x-patch
Size: 5579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230403/5bb62ba2/attachment.bin>


More information about the llvm-commits mailing list