[llvm-commits] [llvm] r98013 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Chris Lattner
clattner at apple.com
Mon Mar 8 16:35:51 PST 2010
On Mar 8, 2010, at 4:07 PM, Dan Gohman wrote:
> Author: djg
> Date: Mon Mar 8 18:07:36 2010
> New Revision: 98013
>
> URL: http://llvm.org/viewvc/llvm-project?rev=98013&view=rev
> Log:
> Print the correct index in the "match failed at index" message.
This isn't correct for multi-byte opcodes. Please capture the MatcherIndex before dispatching on the opcode and print that value.
-Chris
>
> Modified:
> llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
>
> Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=98013&r1=98012&r2=98013&view=diff
> ==============================================================================
> --- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
> +++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Mon Mar 8 18:07:36 2010
> @@ -2680,7 +2680,7 @@
> NodeStack.append(LastScope.NodeStack.begin(), LastScope.NodeStack.end());
> N = NodeStack.back();
>
> - DEBUG(errs() << " Match failed at index " << MatcherIndex
> + DEBUG(errs() << " Match failed at index " << (MatcherIndex-1)
> << " continuing at " << LastScope.FailIndex << "\n");
>
> if (LastScope.NumMatchedMemRefs != MatchedMemRefs.size())
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list