[PATCH] D67556: [ARM][AArch64][DebugInfo] Improve call site instruction interpretation
David Stenberg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 16 05:49:35 PDT 2019
dstenb added inline comments.
================
Comment at: lib/CodeGen/TargetInstrInfo.cpp:1137-1140
+ // TODO: For now, there is no use of describing the value loaded into the
+ // register that is also the source registers (e.g. $r0 = add $r0, x).
+ if (DestRegOp->getReg() == SrcRegOp->getReg())
+ return None;
----------------
NikolaPrica wrote:
> dstenb wrote:
> > Would it be safe to return such values without this check due to the `getNumElements() == 0` check in `collectCallSiteParameters()`? If so, perhaps we should just consider this a limitation in `collectCallSiteParameters()`, and let the hook describe the values even though they currently can't be used by the caller.
> It would be safe. `getNumElements() == 0` would cover this case. But I wanted to explicitly document such behaviour in form of code block and TODO. Although in `describeLoadedValue ()` we choose what we describe it may be better to move such verification to `collectCallSiteParameters ()`?
Sorry for the delay!
Moving the verification to `collectCallSiteParameters()` sounds good to me.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67556/new/
https://reviews.llvm.org/D67556
More information about the llvm-commits
mailing list