During bottom up fast-isel, instructions emitted to materalize registers are at top...
authorDevang Patel <dpatel@apple.com>
Mon, 18 Jul 2011 20:55:23 +0000 (20:55 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 18 Jul 2011 20:55:23 +0000 (20:55 +0000)
commit1360bc8eb029d51d426c77c4b1410849ff308893
treee8b242d66d1dfc3f259884f4cee3f98944897e23
parentfc933c073e9357a791c0f6b307355ed735e3557f
During bottom up fast-isel, instructions emitted to materalize registers are at top of basic block and do not have debug location. This may misguide debugger while entering the basic block and sometimes debugger provides semi useful view of current location to developer by picking up previous known location as current location. Assign a sensible location to the first instruction in a basic block, if it does not have one location derived from source file, so that debugger can provide meaningful user experience to developers in edge cases.
[take 2]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135423 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/FastISel.h
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
test/CodeGen/X86/dbg-materialized-reg-loc.ll [new file with mode: 0644]