[PATCH] D107448: {DebugInfo][LoopStrengthReduction] Don't cache dbg.value that are already undef
Chris Jackson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 4 05:37:02 PDT 2021
chrisjackson updated this revision to Diff 364067.
chrisjackson added a comment.
Applied clang-format.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107448/new/
https://reviews.llvm.org/D107448
Files:
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Index: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -6217,6 +6217,9 @@
if (!DVI)
continue;
+ if (DVI->isUndef())
+ continue;
+
if (DVI->hasArgList())
continue;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107448.364067.patch
Type: text/x-patch
Size: 392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210804/7323ecbb/attachment.bin>
More information about the llvm-commits
mailing list