mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-25 04:39:51 +00:00
d93ea88cde
undef virtual register. The problem is that ProcessImplicitDefs removes the definition of the register and marks all uses as undef. If we lose the undef marker then we get a register which has no def, is not marked as undef. The live interval analysis does not collect information for these virtual registers and we crash in later passes. Together with Michael Kuperstein <michael.m.kuperstein@intel.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160260 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
347 B
LLVM
17 lines
347 B
LLVM
; RUN: llc < %s -march=x86-64 -mcpu=corei7
|
|
|
|
define void @autogen_SD2543() {
|
|
A:
|
|
%E83 = add i32 0, 1
|
|
%E820 = add i32 0, undef
|
|
br label %C
|
|
C:
|
|
%B908 = add i32 %E83, %E820
|
|
store i32 %B908, i32* undef
|
|
%Sl2391 = select i1 undef, i32 undef, i32 %E83
|
|
%Cmp3114 = icmp ne i32 %Sl2391, undef
|
|
br i1 %Cmp3114, label %C, label %G
|
|
G:
|
|
ret void
|
|
}
|