Thanks for using Compiler Explorer
Sponsors
Jakt
C++
Ada
Algol68
Analysis
Android Java
Android Kotlin
Assembly
C
C3
Carbon
C with Coccinelle
C++ with Coccinelle
C++ (Circle)
CIRCT
Clean
CMake
CMakeScript
COBOL
C++ for OpenCL
MLIR
Cppx
Cppx-Blue
Cppx-Gold
Cpp2-cppfront
Crystal
C#
CUDA C++
D
Dart
Elixir
Erlang
Fortran
F#
GLSL
Go
Haskell
HLSL
Hook
Hylo
IL
ispc
Java
Julia
Kotlin
LLVM IR
LLVM MIR
Modula-2
Mojo
Nim
Numba
Nix
Objective-C
Objective-C++
OCaml
Odin
OpenCL C
Pascal
Pony
PTX
Python
Racket
Raku
Ruby
Rust
Sail
Snowball
Scala
Slang
Solidity
Spice
SPIR-V
Swift
LLVM TableGen
Toit
Triton
TypeScript Native
V
Vala
Visual Basic
Vyper
WASM
Zig
Javascript
GIMPLE
Ygen
sway
llvm source #1
Output
Compile to binary object
Link to binary
Execute the code
Intel asm syntax
Demangle identifiers
Verbose demangling
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Debug intrinsics
Compiler
clang (assertions trunk)
clang (trunk)
clang 10.0.0
clang 10.0.1
clang 11.0.0
clang 11.0.1
clang 12.0.0
clang 12.0.1
clang 13.0.0
clang 14.0.0
clang 15.0.0
clang 16.0.0
clang 17.0.1
clang 18.1.0
clang 19.1.0
clang 20.1.0
clang 21.1.0
clang 4.0.1
clang 5.0.0
clang 6.0.0
clang 7.0.0
clang 8.0.0
clang 9.0.0
hexagon-clang 16.0.5
llc (assertions trunk)
llc (trunk)
llc 10.0.0
llc 10.0.1
llc 11.0.0
llc 11.0.1
llc 12.0.0
llc 12.0.1
llc 13.0.0
llc 14.0.0
llc 15.0.0
llc 16.0.0
llc 17.0.1
llc 18.1.0
llc 19.1.0
llc 20.1.0
llc 21.1.0
llc 3.2
llc 3.3
llc 3.9.1
llc 4.0.0
llc 4.0.1
llc 5.0.0
llc 6.0.0
llc 7.0.0
llc 8.0.0
llc 9.0.0
opt (assertions trunk)
opt (trunk)
opt 10.0.0
opt 10.0.1
opt 11.0.0
opt 11.0.1
opt 12.0.0
opt 12.0.1
opt 13.0.0
opt 14.0.0
opt 15.0.0
opt 16.0.0
opt 17.0.1
opt 18.1.0
opt 19.1.0
opt 20.1.0
opt 21.1.0
opt 3.2
opt 3.3
opt 3.9.1
opt 4.0.0
opt 4.0.1
opt 5.0.0
opt 6.0.0
opt 7.0.0
opt 8.0.0
opt 9.0.0
Options
Source code
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" target triple = "aarch64-unknown-linux-gnu" declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0 declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0 define fastcc i32 @x264_predictor_difference(ptr nocapture noundef readonly %0, i64 noundef %1) unnamed_addr #1 !prof !36 !PGOFuncName !37 { %3 = icmp sgt i64 %1, 1 br i1 %3, label %4, label %11 4: ; preds = %2 %5 = load i16, ptr %0, align 2 %6 = getelementptr inbounds [2 x i16], ptr %0, i64 0, i64 1 %7 = load i16, ptr %6, align 2 %8 = add i64 %1, -2 br label %13 9: ; preds = %13 %10 = phi i32 [ %32, %13 ] br label %11 11: ; preds = %9, %2 %12 = phi i32 [ 0, %2 ], [ %10, %9 ] ret i32 %12 13: ; preds = %13, %4 %14 = phi i16 [ %7, %4 ], [ %27, %13 ] %15 = phi i16 [ %5, %4 ], [ %21, %13 ] %16 = phi i64 [ 0, %4 ], [ %19, %13 ] %17 = phi i32 [ 0, %4 ], [ %32, %13 ] %18 = sext i16 %15 to i32 %19 = add nuw nsw i64 %16, 1 %20 = getelementptr inbounds [2 x i16], ptr %0, i64 %19 %21 = load i16, ptr %20, align 2 %22 = sext i16 %21 to i32 %23 = sub nsw i32 %18, %22 %24 = tail call i32 @llvm.abs.i32(i32 %23, i1 true) %25 = sext i16 %14 to i32 %26 = getelementptr inbounds [2 x i16], ptr %0, i64 %19, i64 1 %27 = load i16, ptr %26, align 2 %28 = sext i16 %27 to i32 %29 = sub nsw i32 %25, %28 %30 = tail call i32 @llvm.abs.i32(i32 %29, i1 true) %31 = add i32 %24, %17 %32 = add i32 %31, %30 %33 = icmp eq i64 %16, %8 br i1 %33, label %9, label %13, !llvm.loop !38 } declare i32 @llvm.abs.i32(i32, i1 ) attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #1 = { inlinehint nofree nosync nounwind memory(argmem: read) uwtable vscale_range(1,16) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="neoverse-v1" "target-features"="+aes,+bf16,+crc,+dotprod,+fp-armv8,+fp16fml,+fullfp16,+i8mm,+lse,+neon,+outline-atomics,+rand,+ras,+rcpc,+rdm,+sha2,+sha3,+sm4,+spe,+ssbs,+sve,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8a,-fmv" } attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="neoverse-v1" "target-features"="+aes,+bf16,+crc,+dotprod,+fp-armv8,+fp16fml,+fullfp16,+i8mm,+lse,+neon,+outline-atomics,+rand,+ras,+rcpc,+rdm,+sha2,+sha3,+sm4,+spe,+ssbs,+sve,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8a,-fmv" } attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #4 = { nocallback nofree nosync nounwind willreturn memory(none) } !llvm.module.flags = !{!0, !29, !30, !31, !32, !33, !34} !llvm.ident = !{!35} !0 = !{i32 1, !"ProfileSummary", !1} !1 = !{!2, !3, !4, !5, !6, !7, !8, !9, !10, !11} !2 = !{!"ProfileFormat", !"InstrProf"} !3 = !{!"TotalCount", i64 36754860788} !4 = !{!"MaxCount", i64 10019166208} !5 = !{!"MaxInternalCount", i64 10019166208} !6 = !{!"MaxFunctionCount", i64 3696191352} !7 = !{!"NumCounts", i64 4583} !8 = !{!"NumFunctions", i64 668} !9 = !{!"IsPartialProfile", i64 0} !10 = !{!"PartialProfileRatio", double 0.000000e+00} !11 = !{!"DetailedSummary", !12} !12 = !{!13, !14, !15, !16, !17, !18, !19, !20, !21, !22, !23, !24, !25, !26, !27, !28} !13 = !{i32 10000, i64 10019166208, i32 1} !14 = !{i32 100000, i64 10019166208, i32 1} !15 = !{i32 200000, i64 10019166208, i32 1} !16 = !{i32 300000, i64 5508843008, i32 2} !17 = !{i32 400000, i64 5508843008, i32 2} !18 = !{i32 500000, i64 5049671136, i32 3} !19 = !{i32 600000, i64 3696191352, i32 4} !20 = !{i32 700000, i64 974592144, i32 6} !21 = !{i32 800000, i64 687162800, i32 11} !22 = !{i32 900000, i64 168971520, i32 21} !23 = !{i32 950000, i64 32902232, i32 45} !24 = !{i32 990000, i64 1804593, i32 262} !25 = !{i32 999000, i64 234554, i32 711} !26 = !{i32 999900, i64 50461, i32 962} !27 = !{i32 999990, i64 12285, i32 1079} !28 = !{i32 999999, i64 323, i32 1188} !29 = !{i32 1, !"wchar_size", i32 4} !30 = !{i32 8, !"PIC Level", i32 2} !31 = !{i32 7, !"PIE Level", i32 2} !32 = !{i32 7, !"uwtable", i32 2} !33 = !{i32 1, !"ThinLTO", i32 0} !34 = !{i32 1, !"EnableSplitLTOUnit", i32 1} !35 = !{!"clang version 17.0.0 (https://github.com/llvm/llvm-project d5ea1b22cba345e4fc0d42085a8c366407c7265b)"} !36 = !{!"function_entry_count", i64 0} !37 = !{!"me.c:x264_predictor_difference"} !38 = distinct !{!38, !39} !39 = !{!"llvm.loop.mustprogress"}
Become a Patron
Sponsor on GitHub
Donate via PayPal
Compiler Explorer Shop
Source on GitHub
Mailing list
Installed libraries
Wiki
Report an issue
How it works
Contact the author
CE on Mastodon
CE on Bluesky
Statistics
Changelog
Version tree