diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-08-29 06:42:35 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-08-29 06:42:35 +0000 |
commit | e5570a4c3f99ecd1b73ef7e5116a4d105dce6305 (patch) | |
tree | 35c8e554810177d56f2c2b7def5eca6eb646ca55 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | a8a2e5c6669de41241cca9681f475b466c561c56 (diff) | |
download | bcm5719-llvm-e5570a4c3f99ecd1b73ef7e5116a4d105dce6305.tar.gz bcm5719-llvm-e5570a4c3f99ecd1b73ef7e5116a4d105dce6305.zip |
Move isCommutativeBinOp from SelectionDAG.cpp and DAGCombiner.cpp out. Make it a static method of SelectionDAG.
llvm-svn: 29951
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index cb9ad98550b..4fa168fccde 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -38,21 +38,6 @@ static SDVTList makeVTList(const MVT::ValueType *VTs, unsigned NumVTs) { return Res; } -static bool isCommutativeBinOp(unsigned Opcode) { - switch (Opcode) { - case ISD::ADD: - case ISD::MUL: - case ISD::MULHU: - case ISD::MULHS: - case ISD::FADD: - case ISD::FMUL: - case ISD::AND: - case ISD::OR: - case ISD::XOR: return true; - default: return false; // FIXME: Need commutative info for user ops! - } -} - // isInvertibleForFree - Return true if there is no cost to emitting the logical // inverse of this node. static bool isInvertibleForFree(SDOperand N) { |