jckarter/clay — Issue #91: externals/abi/x86 test reveals optimizer bug on x86-32
Author: jckarter
Created: 2011-12-26 00:01:26+00:00
State: open
Labels: llvm-upstream

Should winnow down a test case and report upstream:

```

PHI node operands are not the same type as the result!
%6 = phi <2 x double> [ %"a_Vec[Float64, 2].val", %ifMerge147 ], [ undef, %ifTrue155 ], [ , %init ]
Instruction does not dominate all uses!
%6 = phi <2 x double> [ %"a_Vec[Float64, 2].val", %ifMerge147 ], [ undef, %ifTrue155 ], [ , %init ]
store <2 x double> %6, <2 x double>* %7, align 16
Broken module found, compilation aborted!
0 opt 0x00000001076f20f2 llvm::sys::ThreadLocal::~ThreadLocal() + 7810
1 opt 0x00000001076f25c9 llvm::sys::ThreadLocal::~ThreadLocal() + 9049
2 libsystem_c.dylib 0x00007fff858f1cfa _sigtramp + 26
3 libsystem_c.dylib 0x00007f87ab616460 _sigtramp + 18446743558948013952
4 opt 0x00000001076f2336 llvm::sys::ThreadLocal::~ThreadLocal() + 8390
5 opt 0x00000001076b3122 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 16050
6 opt 0x00000001076b230f llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 12447
7 opt 0x00000001076a0ec5 llvm::cl::parser::~parser() + 20325
8 opt 0x00000001076a115b llvm::cl::parser::~parser() + 20987
9 opt 0x00000001076a12e4 llvm::cl::parser::~parser() + 21380
10 opt 0x00000001076a1898 llvm::cl::parser::~parser() + 22840
11 opt 0x00000001076a1d9d llvm::cl::parser::~parser() + 24125
12 opt 0x00000001073aabb1 std::vector >, std::allocator > > >::_M_insert_aux(__gnu_cxx::__normal_iterator >*, std::vector >, std::allocator > > > >, std::pair > const&) + 6577
13 opt 0x00000001073a52b4
Stack dump:
0.	Program arguments: /usr/local/llvm-3.0/bin/opt -O3 -S -o main.opt.ll main.ll
1.	Running pass 'Function Pass Manager' on module 'main.ll'.
2.	Running pass 'Module Verifier' on function '@clay_x86_return_11'
```