When it sees the parentheses, does it have the machine do the operations in the parentheses first, or does it distribute out the parentheses?Like, if I have the following line of code:int i = 2 * (a + b)does it compile like this code:int c = a + bint i = 2 * c
How does the LLVM compiler treat arithmetic operations in parentheses?
c;compiler;llvm
It works as-if the addition is done first, followed by the multiplication.  Under the as-if rule, any number of machine instructions that produce the correct result can be used, and in fact it's almost certain that a multiplication instruction will not be used by any optimizing compiler.