diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-14 20:04:46 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-14 20:04:46 +0000 |
commit | 550c9af91f85c7c55361751cc33a7974f58bf9a3 (patch) | |
tree | 3eceda49cc410c056b5a1e2cda8e2685a01ab771 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | fa8b2ea41b293a43b362f1df60e240c9eda7b839 (diff) | |
download | bcm5719-llvm-550c9af91f85c7c55361751cc33a7974f58bf9a3.tar.gz bcm5719-llvm-550c9af91f85c7c55361751cc33a7974f58bf9a3.zip |
Improve support for vector casts in LLVM IR and CodeGen.
llvm-svn: 54784
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index bdeffba3233..9682a2f31dc 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -3146,6 +3146,10 @@ SDValue DAGCombiner::ReduceLoadWidth(SDNode *N) { MVT VT = N->getValueType(0); MVT EVT = N->getValueType(0); + // This transformation isn't valid for vector loads. + if (VT.isVector()) + return SDValue(); + // Special case: SIGN_EXTEND_INREG is basically truncating to EVT then // extended to VT. if (Opc == ISD::SIGN_EXTEND_INREG) { |