diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-05-24 20:32:10 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-05-24 20:32:10 +0000 |
commit | ac149ee60a9443533f6415b1d72af77bbdb9a561 (patch) | |
tree | a3331cf9201dbbde7871aee5baf2c7b89ae70485 /llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp | |
parent | fd8b335ca47d42d74d882033c13931420c329aea (diff) | |
download | bcm5719-llvm-ac149ee60a9443533f6415b1d72af77bbdb9a561.tar.gz bcm5719-llvm-ac149ee60a9443533f6415b1d72af77bbdb9a561.zip |
Add a comment which should hopefully make the purpose of this method a
bit clearer.
llvm-svn: 72374
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp index b6f74aea41a..693ac68e30b 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp @@ -224,6 +224,9 @@ SDValue VectorLegalizer::LegalizeOp(SDValue Op) { } SDValue VectorLegalizer::PromoteVectorOp(SDValue Op) { + // Vector "promotion" is basically just bitcasting and doing the operation + // in a different type. For example, x86 promotes ISD::AND on v2i32 to + // v1i64. MVT VT = Op.getValueType(); assert(Op.getNode()->getNumValues() == 1 && "Can't promote a vector with multiple results!"); |