We already do this for 64-bit when it won't fit into a 64-bit AND/TEST's immediate field. This adds an additional qualifier to do it for any single bit constant under optsize
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D43346
[X86] Enable BT to be used in place of TEST for single bit checks under optsize ClosedPublic Authored by craig.topper on Feb 15 2018, 11:18 AM.
Details Summary We already do this for 64-bit when it won't fit into a 64-bit AND/TEST's immediate field. This adds an additional qualifier to do it for any single bit constant under optsize
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 15 2018, 12:16 PM Closed by commit rL325290: [X86] Enable BT to be used in place of TEST for single bit checks under optsize (authored by ctopper). · Explain WhyFeb 15 2018, 12:30 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 134492 llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
llvm/trunk/test/CodeGen/X86/test-vs-bittest.ll
|