Don't copy the operand of a SwitchInst into virtual registers as
authorDan Gohman <gohman@apple.com>
Thu, 9 Apr 2009 02:33:36 +0000 (02:33 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 9 Apr 2009 02:33:36 +0000 (02:33 +0000)
commit8e5c0da84892649254def8782dc041539209d4db
tree887b218c44f8304d2492d0eeb21d5912a75a58bf
parent349ba4951faf3105775e2276a068c135141d42d9
Don't copy the operand of a SwitchInst into virtual registers as
eagerly. This helps avoid CopyToReg nodes in some cases where they
aren't needed, and also helps subsequent optimizer heuristics
in cases where the extra nodes would cause the node to appear
to have multiple results. This doesn't have a significant impact
currently; it'll help an upcoming change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68667 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp