[PATCH] D37418: [X86] Use btc/btr/bts to implement xor/and/or that affects a single bit in the upper 32-bits of a 64-bit operation.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 2 23:47:21 PDT 2017


craig.topper added a comment.

I can remove the change from TargetTransformInfo.cpp which would make the constants get hoisted by the ConstantHoisting pass. Would that help?

gcc and icc both use the bt instructions for at least simple single BB cases. I'll check some more complicated cases.


https://reviews.llvm.org/D37418





More information about the llvm-commits mailing list