llvm-6502/lib/Transforms
Kuba Brecka d71b7d01e8 [asan] Fix invalid debug info for promotable allocas
Since r230724 ("Skip promotable allocas to improve performance at -O0"), there is a regression in the generated debug info for those non-instrumented variables. When inspecting such a variable's value in LLDB, you often get garbage instead of the actual value. ASan instrumentation is inserted before the creation of the non-instrumented alloca. The only allocas that are considered standard stack variables are the ones declared in the first basic-block, but the initial instrumentation setup in the function breaks that invariant.

This patch makes sure uninstrumented allocas stay in the first BB.

Differential Revision: http://reviews.llvm.org/D11179



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242510 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-17 06:29:57 +00:00
..
Hello Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
InstCombine [InstCombine] Generalize sub of selects optimization to all BinaryOperators 2015-07-14 22:39:23 +00:00
Instrumentation [asan] Fix invalid debug info for promotable allocas 2015-07-17 06:29:57 +00:00
IPO Internalize: internalize comdat members as a group, and drop comdat on such members. 2015-07-16 17:42:21 +00:00
ObjCARC Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
Scalar Create a wrapper pass for BranchProbabilityInfo. 2015-07-15 22:48:29 +00:00
Utils [LAA] Lift RuntimePointerCheck out of LoopAccessInfo, NFC 2015-07-14 22:32:44 +00:00
Vectorize Create a wrapper pass for BlockFrequencyInfo. 2015-07-14 23:40:50 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile