Say the function has a 16-bit parameter that is passed via the stack as a 32-bit value.
In big-endian targets, without the adjustment, the offset will be +0 instead of +2, which is incorrect.
Paths
| Differential D101632
[DebugInfo] Adjust debug info offset for stack arguments in big-endian targets Needs ReviewPublic Authored by yuten on Apr 30 2021, 7:35 AM.
Details
Summary Say the function has a 16-bit parameter that is passed via the stack as a 32-bit value. In big-endian targets, without the adjustment, the offset will be +0 instead of +2, which is incorrect.
Diff Detail
Revision Contents
Diff 341893 llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/test/DebugInfo/ARM/big-endian-args.ll
|