Re-apply 101075 and fix it properly. Just reuse the debug info of the branch instruct...
authorEvan Cheng <evan.cheng@apple.com>
Tue, 13 Apr 2010 18:50:27 +0000 (18:50 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 13 Apr 2010 18:50:27 +0000 (18:50 +0000)
commitfc5a03e46918baf72aef42687d4d31de2399a960
treeafd14ba7e8e087da6e31ad33dcb6acf3108aa90e
parentf23c7692947cfa69934476979941e91e5d945daa
Re-apply 101075 and fix it properly. Just reuse the debug info of the branch instruction being optimized. There is no need to --I which can deref off start of the BB.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101162 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/2010-04-13-AnalyzeBranchCrash.ll [new file with mode: 0644]
test/CodeGen/X86/brcond.ll