Skip to content

C++ has "[[likely]]" and "[[unlikely]]" attributes attached to if-else branches. They help the compiler optimize toward the most commonly taken branch. We leverage an LLM to predict the labeling of these "likely" or "unlikely" labels.

Notifications You must be signed in to change notification settings

pyanda2/Code-Branch-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code-Branch-Prediction

C++ has "likely" and "unlikely" attributes attached to if-else branches. They help the compiler optimize toward the most commonly taken branch. We leverage an LLM to predict the labeling of these "likely" or "unlikely" labels automatically.

Getting Started

Follow along with notebook in an environment with proper GPU (ex. Google Colab's A100)

For runtime evaluation, follow ReadMe in "runtime-analysis" folder

About

C++ has "[[likely]]" and "[[unlikely]]" attributes attached to if-else branches. They help the compiler optimize toward the most commonly taken branch. We leverage an LLM to predict the labeling of these "likely" or "unlikely" labels.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •