llvm-project/llvm/lib/Transforms/Scalar
Vedant Kumar 844d97f650 Clang-trunk Generates Wrong Debug values with -O1
Bit-Tracking Dead Code Elimination (bdce) do not mark dbg.value as undef after
deleting instruction.  which shows invalid state of variable in debugger.  This
patches fixes this by marking the dbg.value as undef which depends on dead
instruction.

This fixes https://bugs.llvm.org/show_bug.cgi?id=41925

Patch by kamlesh kumar!

Differential Revision: https://reviews.llvm.org/D70040
2019-11-21 13:53:10 -08:00
..
ADCE.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
AlignmentFromAssumptions.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
BDCE.cpp Clang-trunk Generates Wrong Debug values with -O1 2019-11-21 13:53:10 -08:00
CMakeLists.txt [cmake] Explicitly mark libraries defined in lib/ as "Component Libraries" 2019-11-21 10:48:08 -08:00
CallSiteSplitting.cpp Add missing includes needed to prune LLVMContext.h include, NFC 2019-11-14 15:23:15 -08:00
ConstantHoisting.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
ConstantProp.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
CorrelatedValuePropagation.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
DCE.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
DeadStoreElimination.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
DivRemPairs.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
EarlyCSE.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
FlattenCFGPass.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
Float2Int.cpp Add missing includes needed to prune LLVMContext.h include, NFC 2019-11-14 15:23:15 -08:00
GVN.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
GVNHoist.cpp [MemorySSA] Moving at the end often means before terminator. 2019-11-20 17:11:00 -08:00
GVNSink.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
GuardWidening.cpp Broaden the definition of a "widenable branch" 2019-11-21 10:46:16 -08:00
IVUsersPrinter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
IndVarSimplify.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
InductiveRangeCheckElimination.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
InferAddressSpaces.cpp Fix uninitialized variable warning. NFCI. 2019-11-14 14:21:17 +00:00
InstSimplifyPass.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
JumpThreading.cpp [JumpThreading] Refactor ThreadEdge 2019-11-21 12:38:22 -08:00
LICM.cpp [MemorySSA] Moving at the end often means before terminator. 2019-11-20 17:11:00 -08:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LoopAccessAnalysisPrinter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LoopDataPrefetch.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LoopDeletion.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LoopDistribute.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LoopFuse.cpp Add missing includes needed to prune LLVMContext.h include, NFC 2019-11-14 15:23:15 -08:00
LoopIdiomRecognize.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LoopInstSimplify.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LoopInterchange.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LoopLoadElimination.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LoopPassManager.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LoopPredication.cpp [NFC] Factor out utilities for manipulating widenable branches 2019-11-19 14:43:13 -08:00
LoopRerollPass.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LoopRotation.cpp Add missing includes needed to prune LLVMContext.h include, NFC 2019-11-14 15:23:15 -08:00
LoopSimplifyCFG.cpp [MemorySSA] Update analysis when the terminator is a memory instruction. 2019-11-20 16:36:52 -08:00
LoopSink.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LoopStrengthReduce.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LoopUnrollAndJamPass.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LoopUnrollPass.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LoopUnswitch.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LoopVersioningLICM.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LowerAtomic.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LowerConstantIntrinsics.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LowerExpectIntrinsic.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LowerGuardIntrinsic.cpp Move widenable branch formation into makeGuardControlFlowExplicit helper 2019-11-20 12:54:05 -08:00
LowerWidenableCondition.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
MakeGuardsExplicit.cpp D'oh. Fix assert after a84922916e. 2019-11-20 22:22:51 -05:00
MemCpyOptimizer.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
MergeICmps.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
MergedLoadStoreMotion.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
NaryReassociate.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
NewGVN.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
PartiallyInlineLibCalls.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
PlaceSafepoints.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
Reassociate.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
Reg2Mem.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
RewriteStatepointsForGC.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
SCCP.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
SROA.cpp SROA - fix uninitialized variable warnings. NFCI. 2019-11-14 14:21:17 +00:00
Scalar.cpp Reapply r374743 with a fix for the ocaml binding 2019-10-14 16:15:14 +00:00
Scalarizer.cpp Remove Support/Options.h, it is unused 2019-11-15 13:32:52 -08:00
SeparateConstOffsetFromGEP.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
SimpleLoopUnswitch.cpp [MemorySSA] Moving at the end often means before terminator. 2019-11-20 17:11:00 -08:00
SimplifyCFGPass.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
Sink.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
SpeculateAroundPHIs.cpp Ignore indirect branches from callbr. 2019-08-14 16:44:07 +00:00
SpeculativeExecution.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
StraightLineStrengthReduce.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
StructurizeCFG.cpp Add missing includes needed to prune LLVMContext.h include, NFC 2019-11-14 15:23:15 -08:00
TailRecursionElimination.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
WarnMissedTransforms.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00