[LLVMdev] clang -O2 versus opt -O2 | llc | clang

Tim Northover t.p.northover at gmail.com
Fri May 23 12:49:16 PDT 2014


>> I've not tracked down quite how Clang sets that extra
>> "-unroll-runtime" option (I'd be interested to know myself, actually,
>> having failed).
>
> It doesn't, but the backend can by overriding TTI::getUnrollingPreferences
> or setting LoopMicroOpBufferSize in the processor scheduling model.

I don't think that explains what I'm seeing either: only PPC and R600
seem to mention that function. All code I'm compiling is x86_64.

Cheers.

Tim.

(Incidentally, "opt -loop-unroll -unroll-runtime" may need an already
optimised .ll file. I'm attaching my copy here in case it helps
anyone).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp1.ll
Type: application/octet-stream
Size: 1219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140523/e7b7d665/attachment.obj>


More information about the llvm-dev mailing list