Optimize llvm

4

Click here to load reader

Transcript of Optimize llvm

Page 1: Optimize llvm

Optimize Code with LLVM

Page 2: Optimize 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”

Page 3: Optimize llvm

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.)

Page 4: Optimize llvm

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.