diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-01-16 20:57:18 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-01-16 20:57:18 +0000 |
commit | e57187cbe321a286f6a7f409a7badd1ae4e4642c (patch) | |
tree | 8395fea43586e2ee3e8630576c9a9bbd2cd2c5b3 /lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp | |
parent | a21a8607e4d35c9e6d6ed276689e84651e602231 (diff) |
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp index 468fd8d4da..e2c1e285ea 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp @@ -33,6 +33,7 @@ SUnit *ScheduleDAGSDNodes::Clone(SUnit *Old) { SU->isTwoAddress = Old->isTwoAddress; SU->isCommutable = Old->isCommutable; SU->hasPhysRegDefs = Old->hasPhysRegDefs; + Old->isCloned = true; return SU; } |