Skip to content
  • Hal Finkel's avatar
    Add the cold attribute to error-reporting call sites · 66cd3f1b
    Hal Finkel authored
    Generally speaking, control flow paths with error reporting calls are cold.
    So far, error reporting calls are calls to perror and calls to fprintf,
    fwrite, etc. with stderr as the stream. This can be extended in the future.
    
    The primary motivation is to improve block placement (the cold attribute
    affects the static branch prediction heuristics).
    
    llvm-svn: 194943
    66cd3f1b
Loading