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
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
; RUN: llc -march=hexagon -O2 < %s | FileCheck %s

; Check that we don't generate .falign directives after function calls at O2.
; We need more than one basic block for this test because MachineBlockPlacement
; will not run on single basic block functions.

declare i32 @f0()

; We don't want faligns after the calls to foo.
; CHECK:     call f0
; CHECK-NOT: falign
; CHECK:     call f0
; CHECK-NOT: falign
; CHECK:     dealloc_return
define i32 @f1(i32 %a0) #0 {
b0:
  %v0 = icmp eq i32 %a0, 0
  br i1 %v0, label %b1, label %b2

b1:                                               ; preds = %b0
  %v1 = call i32 @f0()
  %v2 = call i32 @f0()
  %v3 = add i32 %v1, %v2
  ret i32 %v3

b2:                                               ; preds = %b0
  %v4 = add i32 %a0, 5
  ret i32 %v4
}

attributes #0 = { nounwind }