<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><br>Thank you for the link! It is not clear though what -Oe actually implements. Does it simply optimize for speed as suggested by Chris or it does other things?<br>Generally speaking, speed correlates well with low energy, because completing the task in fewer cycles means consuming less energy unless the speed optimization causes the energy per cycle to be significantly higher. In theory, some compiler and hardware optimizations such as instruction-level parallelism (ILP), speculative execution and pre-fetching increase the energy consumption per cycle. If the same speed can be achieved using less energy per cycle by controlling such optimizations, the total energy consumption will be less. Some of these optimizations may be controlled by the compiler. Also, the switching energy from one instruction to another depends on the instruction
 order. So, in theory, if there are multiple instruction orders that give the same speed, the order that minimizes the switching energy will consume less overall energy. There is some academic research on this with simulation data, but I am not aware of any actual implementation in a production compiler that proves actual energy reduction. Has anyone ever implemented and experimented with such optimizations in LLVM?<br><br>Thanks<br><br>Ghassan Shobaki, PH.D<br>Assistant Professor <br>Department of Computer Science <br>Princess Sumaya University for Technology <br><div>Amman, Jordan</div><br><div><span><br></span></div><div><br></div>  <div style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight: bold;">From:</span></b> Sean Silva <silvas@purdue.edu><br> <b><span
 style="font-weight: bold;">To:</span></b> Ghassan Shobaki <ghassan_shobaki@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "llvmdev@cs.uiuc.edu" <llvmdev@cs.uiuc.edu> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, April 15, 2013 5:03 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [LLVMdev] Power/Energy Awareness in LLVM<br> </font> </div> <div class="y_msg_container"><br>
<div id="yiv1555622611"><div dir="ltr">See http://llvm.org/bugs/show_bug.cgi?id=6210.<div><br></div><div style="">-- Sean Silva</div></div>
</div><br><br></div> </div> </div>  </div></body></html>