It is technically legal for optimizations to create an alloca that is
used by more than one dbg.declare, if one or both of them are inlined
instances of aliasing variables.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/lib/Transforms/Scalar/SROA.cpp | ||
---|---|---|
4534 | I wonder if its better to define a helper equality check function: auto IdenticalInlinedFragment = [](const DbgVariableInstric *LHS, const DbgVariableIntrinsic *RHS) -> Bool { return LHS->getVariable() == RHS->getVariable() && LHS->getDebugLoc()->getInlinedAt() == RHS->getDebugLoc()->getInlinedAt(); } |
I wonder if its better to define a helper equality check function: