OSDN Git Service

[DAGCombiner] Tidy up ConstantFP commutation. NFCI
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 24 Oct 2015 20:06:18 +0000 (20:06 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 24 Oct 2015 20:06:18 +0000 (20:06 +0000)
commitc0bfd317a3e6752dbb1ea042beb9f42d8e55ebfc
treeb60c5d43cdba22980c9215279067c4ab776fc8e2
parentba3f3a65e64fe2cf1f492d90499928270fc1a426
[DAGCombiner] Tidy up ConstantFP commutation. NFCI

Move ConstantFP canonicalization of commutative instructions to start of 2-op node creation (matches integer) - simplifies constant folding code.

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