SlideShare une entreprise Scribd logo
1  sur  4
Optimize Code with
LLVM
What is the main point?

The talk gives a detailed explanation of several new
Build Settings in XCode.
“Relax IEEE Compliance”
“Vectorize Loops”
“Link-Time Optimization”
“Unroll Loops”
“Optimization Level -Ofast”
What could you get out of it?

A C/Assembly level explanation of what the
complier is doing to take advantage of some of
the features of ARM/Intel processors.
It is especially useful if you write code that has
a lot of for-loops (games, scientific applications,
image processing, etc.)
What is the most interesting point?

There were a couple of interesting points which were
briefly mentioned:
The restrict keyword.
Structs of arrays are better than arrays of structs.

Optimize llvm

  • 2. What is the main point? The talk gives a detailed explanation of several new Build Settings in XCode. “Relax IEEE Compliance” “Vectorize Loops” “Link-Time Optimization” “Unroll Loops” “Optimization Level -Ofast”
  • 3. What could you get out of it? A C/Assembly level explanation of what the complier is doing to take advantage of some of the features of ARM/Intel processors. It is especially useful if you write code that has a lot of for-loops (games, scientific applications, image processing, etc.)
  • 4. What is the most interesting point? There were a couple of interesting points which were briefly mentioned: The restrict keyword. Structs of arrays are better than arrays of structs.

Notes de l'éditeur

  1. {}