- Apr 02, 2010
-
-
Benjamin Kramer authored
llvm-svn: 100225
-
Chris Lattner authored
llvm-svn: 100223
-
- Mar 25, 2010
-
-
Evan Cheng authored
llvm-svn: 99487
-
Evan Cheng authored
Change how dbg_value sdnodes are converted into machine instructions. Their placement should be determined by the relative order of incoming llvm instructions. The scheduler will now use the SDNode ordering information to determine where to insert them. A dbg_value instruction is inserted after the instruction with the last highest source order and before the instruction with the next highest source order. It will optimize the placement by inserting right after the instruction that produces the value if they have consecutive order numbers. Here is a theoretical example that illustrates why the placement is important. tmp1 = store tmp1 -> x ... tmp2 = add ... ... call ... store tmp2 -> x Now mem2reg comes along: tmp1 = dbg_value (tmp1 -> x) ... tmp2 = add ... ... call ... dbg_value (tmp2 -> x) When the debugger examine the value of x after the add instruction but before the call, it should have the value of tmp1. Furthermore, for dbg_value's that reference constants, they should not be emitted at the beginning of the block (since they do not have "producers"). This patch also cleans up how SDISel manages DbgValue nodes. It allow a SDNode to be referenced by multiple SDDbgValue nodes. When a SDNode is deleted, it uses the information to find the SDDbgValues and invalidate them. They are not deleted until the corresponding SelectionDAG is destroyed. llvm-svn: 99469
-
- Mar 14, 2010
-
-
Evan Cheng authored
llvm-svn: 98513
-
- Mar 11, 2010
-
-
Dale Johannesen authored
llvm-svn: 98202
-
- Mar 10, 2010
-
-
Dale Johannesen authored
No functional effect yet. This is still evolving and should not be viewed as final. llvm-svn: 98195
-
- Mar 08, 2010
-
-
Dale Johannesen authored
llvm-svn: 97939
-
- Mar 06, 2010
-
-
Dale Johannesen authored
functional change yet. llvm-svn: 97855
-