[LLVMdev] Handling of DebugLocs during CSE of SelectionDAG nodes.

Richard Osborne richard at xmos.com
Thu Sep 15 02:56:11 PDT 2011

On 14/09/11 19:28, Devang Patel wrote:
> On Sep 14, 2011, at 10:34 AM, Jakob Stoklund Olesen wrote:
>> At -O0, SelectionDAG nodes are scheduled in source order when possible.
>> When merging identical nodes, you should make sure that the resulting node has the earlier source order, and the debug location should match.
>> That way, CSE simply looks like the last definition of a value has been removed.  Debug location and source order of the first definition should be preserved.
> hmm… I agree with Jakob. See SelectionDAG::GetOrdering()
> -
> Devang
Thanks for your replies. That does seem like a better approach if that 
kind of information is easily available.

Richard Osborne | XMOS

More information about the llvm-dev mailing list