[LLVMdev] bug in CSEMap?

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Aug 14 05:02:08 PDT 2006


I am having some problems with the generated code having wrong
constants in the constant pull. Adding a dump of "C" and "E" in
SelectionDAG::getConstantPool I get

C:
----------------------------------------------------------
%str = internal constant [12 x sbyte] c"Hello World\00"         ; <[12
x sbyte]*> [#uses=1]
-----------------------------------------------------------

E:
-----------------------------------------------------------
0x89f8ea0: i32 = ConstantPool <
declare int %puts(sbyte*)
> 0
-----------------------------------------------------------

This can be reproduced by running "llvm-as  hello.ll -o - | llc
-march=arm". Is this a bug in CSEMap?

Best Regards,
Rafael



More information about the llvm-dev mailing list