[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / CodeGen / PowerPC / 2008-04-16-CoalescerBug.ll
blobf4c0f549ce5a11b8f6958943ed61eedab5ba937d
1 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s
2 ; Avoid reading memory that's already freed.
4 @llvm.used = appending global [1 x ptr] [ ptr @_Z13GetSectorSizey ], section "llvm.metadata"            ; <ptr> [#uses=0]
6 ; CHECK: @_Z13GetSectorSizey
7 ; CHECK: blr
9 define i32 @_Z13GetSectorSizey(i64 %Base) nounwind  {
10 entry:
11         br i1 false, label %bb, label %UnifiedReturnBlock
12 bb:             ; preds = %entry
13         %tmp10 = and i64 0, %Base               ; <i64> [#uses=0]
14         ret i32 0
15 UnifiedReturnBlock:             ; preds = %entry
16         ret i32 131072