[llvm-commits] [llvm] r40510 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Christopher Lamb
christopher.lamb at gmail.com
Wed Jul 25 20:33:13 PDT 2007
Author: clamb
Date: Wed Jul 25 22:33:13 2007
New Revision: 40510
URL: http://llvm.org/viewvc/llvm-project?rev=40510&view=rev
Log:
Fix infinite recursion for when extract_vector_elt is legal. Unfortunately no public targets use this code-path, so no test.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=40510&r1=40509&r2=40510&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Wed Jul 25 22:33:13 2007
@@ -3605,7 +3605,7 @@
if (isTypeLegal(TVT)) {
Vec = LegalizeOp(Vec);
Op = DAG.UpdateNodeOperands(Op, Vec, Idx);
- Op = LegalizeOp(Op);
+ return Op;
}
break;
case TargetLowering::Expand:
More information about the llvm-commits
mailing list