[all-commits] [llvm/llvm-project] a5a8a0: [SelectionDAG] Handle IntToPtr constants in dbg.value
Felipe de Azevedo Piovezan via All-commits
all-commits at lists.llvm.org
Wed Aug 3 11:13:20 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a5a8a05c78c0d1298c4128aaafd0275354198afb
https://github.com/llvm/llvm-project/commit/a5a8a05c78c0d1298c4128aaafd0275354198afb
Author: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
Date: 2022-08-03 (Wed, 03 Aug 2022)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
A llvm/test/CodeGen/AArch64/inttoptr_debug_value.ll
Log Message:
-----------
[SelectionDAG] Handle IntToPtr constants in dbg.value
The function `handleDebugValue` has custom logic to handle certain kinds
constants, namely integers, floats and null pointers. However, it does
not handle constant pointers created from IntToPtr ConstantExpressions.
This patch addresses the issue by replacing the Constant with its
integer operand.
A similar bug was addressed for GlobalISel in D130642.
Reviewed By: aprantl, #debug-info
Differential Revision: https://reviews.llvm.org/D130908
More information about the All-commits
mailing list