llvm-project/llvm/lib/Transforms/Vectorize
Vedant Kumar c6bceec01a [DebugInfo] Fix pr41180 : Loop Vectorization Debugify Failure
Bug: https://bugs.llvm.org/show_bug.cgi?id=41180

In the bug test case the debug location was missing for the cmp instruction in
the "middle block" BB. This patch fixes the bug by copying the debug location
from the cmp of the scalar loop's terminator branch, if it exists.

The patch also fixes the debug location on the subsequent branch instruction.
It was previously using the location of the of the original loop's pre-header
block terminator. Both of these instructions will now map to the source line of
the conditional branch in the original loop.

A regression test has been added that covers these issues.

Patch by Orlando Cazalet-Hyams!

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

llvm-svn: 357499
2019-04-02 17:28:34 +00:00
..
CMakeLists.txt [LV][VPlan] Change to implement VPlan based predication for 2019-01-23 22:43:12 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LoadStoreVectorizer.cpp [opaque pointer types] Pass value type to LoadInst creation. 2019-02-01 20:44:24 +00:00
LoopVectorizationLegality.cpp [Vectorizer] Add vectorization support for fixed smul/umul intrinsics 2019-02-25 15:42:02 +00:00
LoopVectorizationPlanner.h [VPlan] Determine Vector Width programmatically. 2019-03-28 10:37:12 +00:00
LoopVectorize.cpp [DebugInfo] Fix pr41180 : Loop Vectorization Debugify Failure 2019-04-02 17:28:34 +00:00
SLPVectorizer.cpp [SLP] reorderInputsAccordingToOpcode is const method. NFCI. 2019-04-02 16:27:11 +00:00
VPRecipeBuilder.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
VPlan.cpp [LV][VPlan] Change to implement VPlan based predication for 2019-01-23 22:43:12 +00:00
VPlan.h [LV][VPlan] Change to implement VPlan based predication for 2019-01-23 22:43:12 +00:00
VPlanDominatorTree.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
VPlanHCFGBuilder.cpp Hide two unused debugging methods, NFCI. 2019-03-01 17:15:21 +00:00
VPlanHCFGBuilder.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
VPlanHCFGTransforms.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
VPlanHCFGTransforms.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
VPlanLoopInfo.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
VPlanPredicator.cpp Update files that were mistakenly added with the old file header to the 2019-02-11 08:07:38 +00:00
VPlanPredicator.h Update files that were mistakenly added with the old file header to the 2019-02-11 08:07:38 +00:00
VPlanSLP.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
VPlanValue.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
VPlanVerifier.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
VPlanVerifier.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Vectorize.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00