File: delete-node.ll

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (22 lines) | stat: -rw-r--r-- 968 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--

; The DAGCombiner leaves behind a dead node in this testcase. Currently
; ISel is ignoring dead nodes, though it would be preferable for
; DAGCombiner to be able to eliminate the dead node.

define void @GrayATo32ARGBTabB(ptr %baseAddr, ptr %cmp, i32 %rowBytes) nounwind {
entry:
      	br label %bb1

bb1:            ; preds = %bb1, %entry
        %0 = load i16, ptr null, align 2            ; <i16> [#uses=1]
        %1 = ashr i16 %0, 4             ; <i16> [#uses=1]
        %2 = sext i16 %1 to i32         ; <i32> [#uses=1]
        %3 = getelementptr i8, ptr null, i32 %2             ; <ptr> [#uses=1]
        %4 = load i8, ptr %3, align 1               ; <i8> [#uses=1]
        %5 = zext i8 %4 to i32          ; <i32> [#uses=1]
        %6 = shl i32 %5, 24             ; <i32> [#uses=1]
        %7 = or i32 0, %6               ; <i32> [#uses=1]
        store i32 %7, ptr null, align 4
        br label %bb1
}