[LLVMdev] Assert in SelectionDAGLegalize when using arbitrary size integers
Duncan Sands
baldrick at free.fr
Wed Jun 25 06:28:45 PDT 2008
Hi,
> I am beginning to learn LLVM (using LLVM 2.3.0 on a Linux x86_64
> machine) and wanted to check the status of the support of arbitrary
> size integers.
use llvm from svn and apply this patch.
Ciao,
Duncan.
Index: llvm.master/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
===================================================================
--- llvm.master.orig/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp 2008-06-23 17:16:00.000000000 +0200
+++ llvm.master/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp 2008-06-23 17:17:40.000000000 +0200
@@ -5341,8 +5341,9 @@
// Second step, hack on the DAG until it only uses operations and types that
// the target supports.
-#if 0 // Enable this some day.
+#if 1 // Enable this some day.
DAG.LegalizeTypes();
+ DEBUG(DAG.dump());
// Someday even later, enable a dag combine pass here.
#endif
DAG.Legalize();
More information about the llvm-dev
mailing list