[all-commits] [llvm/llvm-project] 0745eb: [IR2Vec] Scale embeddings once in vocab analysis i...

S. VenkataKeerthy via All-commits all-commits at lists.llvm.org
Mon Jun 30 14:09:41 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0745eb501df34981ba56ce5827b0191d7a493544
      https://github.com/llvm/llvm-project/commit/0745eb501df34981ba56ce5827b0191d7a493544
  Author: S. VenkataKeerthy <31350914+svkeerthy at users.noreply.github.com>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

  Changed paths:
    M llvm/docs/MLGO.rst
    M llvm/include/llvm/Analysis/IR2Vec.h
    M llvm/lib/Analysis/IR2Vec.cpp
    M llvm/lib/Analysis/models/seedEmbeddingVocab75D.json
    M llvm/lib/Passes/PassRegistry.def
    A llvm/test/Analysis/IR2Vec/Inputs/dummy_2D_vocab.json
    M llvm/test/Analysis/IR2Vec/Inputs/dummy_3D_vocab.json
    M llvm/test/Analysis/IR2Vec/Inputs/dummy_5D_vocab.json
    A llvm/test/Analysis/IR2Vec/Inputs/incorrect_vocab1.json
    A llvm/test/Analysis/IR2Vec/Inputs/incorrect_vocab2.json
    A llvm/test/Analysis/IR2Vec/Inputs/incorrect_vocab3.json
    A llvm/test/Analysis/IR2Vec/Inputs/incorrect_vocab4.json
    M llvm/test/Analysis/IR2Vec/basic.ll
    A llvm/test/Analysis/IR2Vec/dbg-inst.ll
    A llvm/test/Analysis/IR2Vec/unreachable.ll
    A llvm/test/Analysis/IR2Vec/vocab-test.ll
    M llvm/unittests/Analysis/IR2VecTest.cpp

  Log Message:
  -----------
  [IR2Vec] Scale embeddings once in vocab analysis instead of repetitive scaling (#143986)

Changes to scale opcodes, types and args once in `IR2VecVocabAnalysis` so that we can avoid scaling each time while computing embeddings. This PR refactors the vocabulary to explicitly define 3 sections---Opcodes, Types, and Arguments---used for computing Embeddings. 

(Tracking issue - #141817 ; partly fixes - #141832)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list