[PATCH] D107476: [ARM] Define ComplexPatternFuncMutatesDAG

Dimitry Andric via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 23 12:14:46 PST 2021


dim added a comment.

Okay, in my case the test case is quite a bit shorter:

  ; ModuleID = 'bugpoint-reduced-simplified.bc'
  source_filename = "PPCISelLowering-min.cpp"
  target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
  target triple = "armv6-unknown-unknown"
  
  %0 = type { %1, [3 x i8] }
  %1 = type { %2 }
  %2 = type <{ %3, i8, i8, [179 x [179 x i16]], [179 x [179 x i8]] }>
  %3 = type { i32 }
  %4 = type <{ %3, i8, i8, [179 x [179 x i16]], [179 x [179 x i8]], [3 x i8] }>
  
  define dso_local arm_aapcscc void @_ZN1jC2Ev(%0* %0) unnamed_addr #0 align 2 {
    %2 = bitcast %0* %0 to %4*
    br i1 undef, label %3, label %4
  
  3:                                                ; preds = %1
    ret void
  
  4:                                                ; preds = %4, %1
    %5 = call arm_aapcscc i32 @_ZN1bIN1g2aiEEdeEv() #1
    %6 = getelementptr inbounds %4, %4* %2, i32 0, i32 3, i32 %5, i32 0
    store i16 0, i16* %6, align 2
    %7 = getelementptr inbounds %4, %4* %2, i32 0, i32 4, i32 %5, i32 0
    store i8 0, i8* %7, align 1
    br label %4, !llvm.loop !1
  }
  
  declare arm_aapcscc i32 @_ZN1bIN1g2aiEEdeEv() local_unnamed_addr #0
  
  attributes #0 = { "target-features"="+armv6,-thumb-mode" }
  attributes #1 = { nounwind }
  
  !llvm.ident = !{!0}
  
  !0 = !{!"FreeBSD clang version 13.0.0 (git at github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)"}
  !1 = distinct !{!1, !2}
  !2 = !{!"llvm.loop.unroll.disable"}


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107476/new/

https://reviews.llvm.org/D107476



More information about the llvm-commits mailing list