Skip to content

pre-commit: PR147182 #2566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

pre-commit: PR147182 #2566

wants to merge 3 commits into from

Conversation

zyw-bot
Copy link
Collaborator

@zyw-bot zyw-bot commented Jul 9, 2025

Link: llvm/llvm-project#147182
Requested by: @nikic

@github-actions github-actions bot mentioned this pull request Jul 9, 2025
@zyw-bot
Copy link
Collaborator Author

zyw-bot commented Jul 9, 2025

Diff mode

runner: ariselab-64c-docker
baseline: llvm/llvm-project@b041a58
patch: llvm/llvm-project#147182
sha256: baf3963c933f9423a4ac36413831683240eefb3920d31cb21b48b17730da369c
commit: 4636967

451 files changed, 55792 insertions(+), 55875 deletions(-)

Improvements:
  licm.NumHoisted 5628621 -> 5628967 +0.01%
  instcombine.NumDeadInst 44233663 -> 44234924 +0.00%
  correlated-value-propagation.NumAddNUW 238008 -> 238014 +0.00%
  correlated-value-propagation.NumAddNW 521125 -> 521138 +0.00%
  correlated-value-propagation.NumAddNSW 283117 -> 283124 +0.00%
  instcombine.NumCombined 130200109 -> 130202645 +0.00%
  correlated-value-propagation.NumNNeg 105280 -> 105282 +0.00%
  correlated-value-propagation.NumNW 1076762 -> 1076775 +0.00%
  correlated-value-propagation.NumNSW 656749 -> 656756 +0.00%
  instcombine.NumSunkInst 3564735 -> 3564767 +0.00%
Regressions:
  correlated-value-propagation.NumSExt 50842 -> 50840 -0.00%
  correlated-value-propagation.NumPhiCommon 58391 -> 58389 -0.00%
  instcombine.NumConstProp 164537 -> 164532 -0.00%
  indvars.NumReplaced 73018 -> 73016 -0.00%
  correlated-value-propagation.NumSelects 245917 -> 245913 -0.00%
  memdep.NumCacheNonLocalPtr 284133625 -> 284130856 -0.00%
  memory-builtins.ObjectVisitorLoad 2480647 -> 2480623 -0.00%
  jump-threading.NumDupes 143275 -> 143274 -0.00%
  gvn.NumGVNInstr 159855 -> 159854 -0.00%
  gvn.NumGVNPRE 159855 -> 159854 -0.00%

4 4 bench/abc/optimized/bacWriteVer.ll
20 20 bench/abc/optimized/cbaWriteVer.ll
15 17 bench/abc/optimized/inflate.ll
4 4 bench/arrow/optimized/align_util.ll
3 3 bench/assimp/optimized/zip.ll
23 23 bench/boost/optimized/src.ll
15 16 bench/boost/optimized/test_codecvt.ll
2 2 bench/box2d/optimized/imgui_demo.ll
7 7 bench/brotli/optimized/backward_references_hq.ll
21 21 bench/brotli/optimized/block_splitter.ll
21 19 bench/clamav/optimized/unpack.ll
26 28 bench/cmake/optimized/ftp.ll
5 5 bench/cpp-httplib/optimized/httplib.ll
57 60 bench/cpython/optimized/longobject.ll
8 9 bench/curl/optimized/tool_findfile.ll
23 23 bench/cvc5/optimized/model_engine.ll
13 15 bench/ffmpeg/optimized/filter.ll
9 5 bench/ffmpeg/optimized/intra.ll
4 5 bench/ffmpeg/optimized/subtitles.ll
5 4 bench/gromacs/optimized/wall.ll
75 67 bench/hdf5/optimized/H5Tbit.ll
81 80 bench/icu/optimized/ucnv_lmb.ll
26 26 bench/icu/optimized/utrie_swap.ll
13 13 bench/jq/optimized/regcomp.ll
20 21 bench/libjpeg-turbo/optimized/jdhuff.ll
15 17 bench/libquic/optimized/inflate.ll
14 15 bench/libwebp/optimized/tree_enc.ll
13 15 bench/libzmq/optimized/ip_resolver.ll
4 3 bench/lief/optimized/hmac_drbg.ll
22 24 bench/linux/optimized/hdmi.ll
12 12 bench/linux/optimized/i9xx_wm.ll
7 8 bench/linux/optimized/intel_display.ll
64 65 bench/linux/optimized/intel_fbc.ll
31 31 bench/linux/optimized/tcp_metrics.ll
10 10 bench/llama.cpp/optimized/unicode.ll
22 23 bench/llvm/optimized/Action.ll
66 64 bench/llvm/optimized/CodeGenDAGPatterns.ll
27 29 bench/llvm/optimized/CombinerHelper.ll
14 15 bench/llvm/optimized/RISCVAsmPrinter.ll
26 26 bench/llvm/optimized/WasmObjectFile.ll
54 51 bench/llvm/optimized/X86ISelLoweringCall.ll
36 37 bench/llvm/optimized/X86InstrInfo.ll
9 7 bench/llvm/optimized/X86ReturnThunks.ll
39 41 bench/lua/optimized/lstrlib.ll
11 12 bench/luajit/optimized/lj_load.ll
66 67 bench/luajit/optimized/lj_strscan.ll
69 71 bench/luau/optimized/lstrlib.ll
24 24 bench/mold/optimized/icf.cc.X86_64.ll
57 57 bench/mold/optimized/passes.cc.X86_64.ll
8 12 bench/node/optimized/libnode.node_sockaddr.ll
21 18 bench/open3d/optimized/FileGLTF.ll
12 12 bench/openblas/optimized/dgsvj0.ll
21 21 bench/openjdk/optimized/intrinsicnode.ll
27 28 bench/openjdk/optimized/rewriter.ll
7 7 bench/openspiel/optimized/backgammon.ll
16 16 bench/openvdb/optimized/FastSweeping.ll
14 15 bench/php/optimized/pcre2_substitute.ll
42 40 bench/php/optimized/quot_print.ll
33 33 bench/pingora-rs/optimized/63snncgsqpi17trm0hdteq5vk.ll
17 17 bench/postgres/optimized/copyfromparse.ll
129 130 bench/postgres/optimized/nbtsearch.ll
21 23 bench/postgres/optimized/nbtutils.ll
10 10 bench/postgres/optimized/network.ll
5 6 bench/qemu/optimized/virtio.ll
21 19 bench/redis/optimized/bitops.ll
5 6 bench/spike/optimized/f16_roundToInt.ll
4 5 bench/spike/optimized/f64_roundToInt.ll
17 18 bench/spike/optimized/s_addMagsF16.ll
49 50 bench/spike/optimized/s_roundMToI64.ll
55 56 bench/spike/optimized/s_roundPackToBF16.ll
9 10 bench/spike/optimized/s_roundPackToI32.ll
33 34 bench/spike/optimized/s_roundPackToI64.ll
9 10 bench/spike/optimized/s_roundPackToUI32.ll
12 13 bench/spike/optimized/s_roundToUI32.ll
26 28 bench/sqlite/optimized/sqlite3.ll
11 11 bench/stockfish/optimized/position.ll
131 107 bench/wireshark/optimized/packet-dof.ll
7 7 bench/wireshark/optimized/packet-ieee80211.ll
36 38 bench/wireshark/optimized/packet-usb-audio.ll
14 15 bench/yosys/optimized/blifparse.ll
6 7 bench/z3/optimized/fm_tactic.ll
8 8 bench/zfp/optimized/testzfp.ll
16 18 bench/zlib/optimized/inflate.ll

Copy link
Contributor

github-actions bot commented Jul 9, 2025

Here is a brief summary of the major changes in the provided LLVM IR diffs:

  1. Loop Condition Adjustments
    Several loop exit conditions were modified to use different comparisons or operands, such as replacing icmp eq A, B with icmp eq B, A, and changing increment-based comparisons to use current values instead of next values. These adjustments improve consistency and potentially optimize control flow.

  2. Simplification of Select Instructions
    Multiple select instructions were simplified by adjusting their constant values (e.g., from 1 to 0, 3 to 2), often reflecting updated logic for branch conditions. These changes reduce unnecessary arithmetic and improve code clarity.

  3. Reduction of Redundant Bit Manipulations
    In several functions, sequences involving zext, sext, and bit shifts were replaced with simpler comparisons or more direct logic, reducing intermediate steps and making the generated code more efficient.

  4. Phi Node Reordering and Adjustment
    Phi nodes in critical edges or loops were reordered or had their incoming values adjusted to reflect new branching logic or variable assignments. This change helps maintain correct value tracking after control flow restructuring.

  5. Improved Memory Access Alignment and PHI Usage
    Some memory accesses were adjusted for better alignment or correctness, and certain load/store operations were reassociated with proper pointers after changes in selection logic. This ensures safer and more optimized access patterns.

These changes generally aim at improving code efficiency, simplifying condition checks, and ensuring correct value propagation through CFG merges.

model: qwen-plus-latest
CompletionUsage(completion_tokens=319, prompt_tokens=112252, total_tokens=112571, completion_tokens_details=None, prompt_tokens_details=None)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants