CreateVirtualRegisters does trivial copy coalescing. If a node def is used by a singl...
authorEvan Cheng <evan.cheng@apple.com>
Fri, 16 Jan 2009 20:57:18 +0000 (20:57 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 16 Jan 2009 20:57:18 +0000 (20:57 +0000)
commite57187cbe321a286f6a7f409a7badd1ae4e4642c
tree8395fea43586e2ee3e8630576c9a9bbd2cd2c5b3
parenta21a8607e4d35c9e6d6ed276689e84651e602231
CreateVirtualRegisters does trivial copy coalescing. If a node def is used by a single CopyToReg, it reuses the virtual register assigned to the CopyToReg. This won't work for SDNode that is a clone or is itself cloned. Disable this optimization for those nodes or it can end up with non-SSA machine instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62356 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/ScheduleDAG.h
include/llvm/CodeGen/ScheduleDAGSDNodes.h
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodesEmit.cpp
test/CodeGen/X86/2009-01-16-SchedulerBug.ll [new file with mode: 0644]