[PATCH] D37250: [X86] Apply SlowIncDec feature to Sandybridge/Ivybridge CPUs as well

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 29 13:36:50 PDT 2017


craig.topper added a comment.

>From HSW on we should be using SHLX/SHRX/SARX instead of any "shift CL" to avoid this silliness. Those instruction don't update flags.

'xor' would definitely break the dependency. 'or' would turn the flag dependency into a register dependency so that's not really better.


https://reviews.llvm.org/D37250





More information about the llvm-commits mailing list