[PATCH] D87494: Improve LSR debug-info
Sterling Augustine via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 5 12:24:52 PDT 2020
saugustine added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:5797
+ DbgValues.push_back(
+ std::make_tuple(D, V->getType(), DS, D->getExpression()));
+ }
----------------
Someone reverted this change while I was tracking down a segfault related to it, but the problem is with this line.
Sometimes D->getVariableLocation() returns null because a variable's location has been lost or can't be found.
A simple fix would be a null check on this line:
if (!V || !SE.isSCEVable(V->getType())))
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87494/new/
https://reviews.llvm.org/D87494
More information about the llvm-commits
mailing list