File: 2011-02-21-VirtRegRewriter-KillSubReg.ll

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
file content (50 lines) | stat: -rw-r--r-- 1,535 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
; RUN: llc < %s -O2 -mtriple=i386-pc-linux-gnu -relocation-model=pic | FileCheck %s
; PR9237: Assertion in VirtRegRewriter.cpp, ResurrectConfirmedKill
;         `KillOps[*SR] == KillOp && "invalid subreg kill flags"'

%t = type { i32 }

define i32 @foo(%t* %s) nounwind {
entry:
  br label %if.then735

if.then735:
  %call747 = call i32 undef(%t* %s, i8* null, i8* undef, i32 128, i8* undef, i32 516) nounwind
  br i1 undef, label %if.then751, label %if.then758

if.then751:
  unreachable

if.then758:
  %add761 = add i32 %call747, 4
  %add763 = add i32 %add761, %call747
  %add.ptr768 = getelementptr inbounds [516 x i8], [516 x i8]* null, i32 0, i32 %add761
  br i1 undef, label %cond.false783, label %cond.true771

cond.true771:
  %call782 = call i8* @__memmove_chk(i8* %add.ptr768, i8* undef, i32 %call747, i32 undef)
  br label %cond.end791

; CHECK: calll __memmove_chk
cond.false783:
  %call.i1035 = call i8* @__memmove_chk(i8* %add.ptr768, i8* undef, i32 %call747, i32 undef) nounwind
  br label %cond.end791

cond.end791:
  %conv801 = trunc i32 %call747 to i8
  %add.ptr822.sum = add i32 %call747, 3
  %arrayidx833 = getelementptr inbounds [516 x i8], [516 x i8]* null, i32 0, i32 %add.ptr822.sum
  store i8 %conv801, i8* %arrayidx833, align 1
  %cmp841 = icmp eq i8* undef, null
  br i1 %cmp841, label %if.end849, label %if.then843

if.then843:
  unreachable

if.end849:
  %call921 = call i32 undef(%t* %s, i8* undef, i8* undef, i32 %add763) nounwind
  unreachable

}

declare i8* @__memmove_chk(i8*, i8*, i32, i32) nounwind