]> granicus.if.org Git - llvm/commit
[X86] Add option to specify preferable loop alignment
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 7 Mar 2017 18:47:22 +0000 (18:47 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 7 Mar 2017 18:47:22 +0000 (18:47 +0000)
commit227bb1aebd44b9fdafe88a6b15bd2325696c9104
treef3018f570daa26a4c0a625685d66dd7297e7e933
parent86bbf4372b9ced49e6b3e1950a4a086fd53c9e0c
[X86] Add option to specify preferable loop alignment

Summary:
Loop alignment can cause a significant change of
the perfromance for short loops.
To be able to evaluate the impact of loop alignment this change
introduces the new option x86-experimental-pref-loop-alignment.
The alignment will be 2^Value bytes, the default value is 4.

Patch by Serguei Katkov!

Reviewers: craig.topper

Reviewed By: craig.topper

Subscribers: sanjoy, llvm-commits

Differential Revision: https://reviews.llvm.org/D30391

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297178 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp