[llvm] r347229 - [InterleavedLoadCombine] Fix warning unused variable

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 19 15:11:35 PST 2018


FWIW you can keep this for loop & write it like this:

LLVM_DEBUG(for (auto &VI : InterleavedLoad)
dbgs() << VI << "\n");

I think?

On Mon, Nov 19, 2018 at 9:14 AM Martin Elshuber via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Author: martin.elshuber
> Date: Mon Nov 19 09:11:48 2018
> New Revision: 347229
>
> URL: http://llvm.org/viewvc/llvm-project?rev=347229&view=rev
> Log:
> [InterleavedLoadCombine] Fix warning unused variable
>
> Differential Revision: https://reviews.llvm.org/D52653
>
>
> Modified:
>     llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp
>
> Modified: llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp?rev=347229&r1=347228&r2=347229&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp (original)
> +++ llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp Mon Nov 19
> 09:11:48 2018
> @@ -1119,8 +1119,6 @@ InterleavedLoadCombineImpl::findFirstLoa
>  bool InterleavedLoadCombineImpl::combine(std::list<VectorInfo>
> &InterleavedLoad,
>                                           OptimizationRemarkEmitter &ORE) {
>    LLVM_DEBUG(dbgs() << "Checking interleaved load\n");
> -  for (auto &VI : InterleavedLoad)
> -    LLVM_DEBUG(dbgs() << VI << "\n");
>
>    // The insertion point is the LoadInst which loads the first values. The
>    // following tests are used to proof that the combined load can be
> inserted
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181119/0d5c48f4/attachment.html>


More information about the llvm-commits mailing list