File: delete-node.ll

package info (click to toggle)
llvm-toolchain-13 1%3A13.0.1-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,418,840 kB
  • sloc: cpp: 5,290,826; ansic: 996,570; asm: 544,593; python: 188,212; objc: 72,027; lisp: 30,291; f90: 25,395; sh: 24,898; javascript: 9,780; pascal: 9,398; perl: 7,484; ml: 5,432; awk: 3,523; makefile: 2,913; xml: 953; cs: 573; fortran: 539
file content (22 lines) | stat: -rw-r--r-- 972 bytes parent folder | download | duplicates (15)
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(i8* %baseAddr, i16** %cmp, i32 %rowBytes) nounwind {
entry:
      	br label %bb1

bb1:            ; preds = %bb1, %entry
        %0 = load i16, i16* 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, i8* null, i32 %2             ; <i8*> [#uses=1]
        %4 = load i8, i8* %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, i32* null, align 4
        br label %bb1
}