[LLVMdev] X86TargetLowering::LowerToBT

Chris Sears chris.sears at gmail.com
Thu Jan 22 14:48:18 PST 2015


The problem is that REX TEST reg,#(1<<37) is 10 bytes vs 5 bytes for REX BT
reg,37.
That's a large space penalty to pay for a possible partial update stall.

So the idea of generating BT for -Os and TEST for -Ofast makes sense to me.
Regardless, LowerToBT is generating TEST for small values.

I'm still tracking down the Clang issue and I'd like folks to look at that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150122/874b4633/attachment.html>


More information about the llvm-dev mailing list