]> granicus.if.org Git - llvm/commit
Do not add discriminator encoding for debug intrinsics.
authorDehao Chen <dehao@google.com>
Thu, 26 Oct 2017 21:20:52 +0000 (21:20 +0000)
committerDehao Chen <dehao@google.com>
Thu, 26 Oct 2017 21:20:52 +0000 (21:20 +0000)
commitb1bfcf247fd22246ea224ad2df241f25c63ea22e
tree774a2f831dbc1aec3b41fe4ffd04580d2c761219
parent7d937df6d020892f699bff630a7d52996f275646
Do not add discriminator encoding for debug intrinsics.

Summary: There are certain requirements for debug location of debug intrinsics, e.g. the scope of the DILocalVariable should be the same as the scope of its debug location. As a result, we should not add discriminator encoding for debug intrinsics.

Reviewers: dblaikie, aprantl

Reviewed By: aprantl

Subscribers: JDevlieghere, aprantl, bjope, sanjoy, llvm-commits

Differential Revision: https://reviews.llvm.org/D39343

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316703 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopUnroll.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/discriminator.ll