reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
; RUN: opt < %s -reassociate -S | FileCheck %s

define i32 @test1(i32 %A) {
; CHECK-LABEL: test1
; CHECK: ret i32 0
  %X = add i32 %A, 1
  %Y = add i32 %A, 1
  %r = sub i32 %X, %Y
  ret i32 %r
}