llvm-project/llvm/test/CodeGen
Craig Topper 6b1b630a98 [SelectionDAG] Use known ones to provide a better bound for the known zeros for CTTZ/CTLZ operations.
This is the SelectionDAG version of D32521. If know where at least one 1 is located in the input to these intrinsics we can place an upper bound on the number of bits needed to represent the count and thus increase the number of known zeros in the output.

I think we can also refine this further for CTTZ_UNDEF/CTLZ_UNDEF by assuming that the answer will never be BitWidth. I've left this out for now because it caused other test failures across multiple targets. Usually because of turning ADD into OR based on this new information.

I'll fix CTPOP in a future patch.

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

llvm-svn: 301806
2017-05-01 16:08:06 +00:00
..
AArch64 [StackMaps] Increase the size of the "location size" field 2017-04-28 04:48:42 +00:00
AMDGPU AMDGPU: Fix copies from physical registers in SIFixSGPRCopies 2017-04-29 01:26:34 +00:00
ARM [ARM] GlobalISel: Tighten test. NFC 2017-04-28 07:50:47 +00:00
AVR [AVR] Implement non-constant bit rotations 2017-05-01 09:48:55 +00:00
BPF [bpf] add bigendian support to disassembler 2017-04-28 16:51:01 +00:00
Generic [Hexagon] Unxfail passing tests 2017-04-13 16:05:35 +00:00
Hexagon [RDF] Correctly calculate lane masks for defs 2017-04-28 21:57:53 +00:00
Inputs
Lanai
MIR MIR: Allow parsing of empty machine functions 2017-04-11 19:32:41 +00:00
MSP430 [MSP430] Fix PR32769: Select8 and Select16 need to have SR in Uses. 2017-04-26 00:33:59 +00:00
Mips [mips][microMIPS] Adding code size reduction pass for MicroMIPS 2017-04-27 13:10:48 +00:00
NVPTX Add address space mangling to lifetime intrinsics 2017-04-10 20:18:21 +00:00
PowerPC [StackMaps] Increase the size of the "location size" field 2017-04-28 04:48:42 +00:00
SPARC Don't emit CFI instructions at the end of a function 2017-04-24 18:45:59 +00:00
SystemZ [SystemZ] Update kill-flag in splitMove(). 2017-04-24 12:40:28 +00:00
Thumb [ARM] ScheduleDAGRRList::DelayForLiveRegsBottomUp must consider OptionalDefs 2017-04-23 06:58:08 +00:00
Thumb2 Add address space mangling to lifetime intrinsics 2017-04-10 20:18:21 +00:00
WebAssembly [WebAssembly] Fix WebAssemblyOptimizeReturned after r300367 2017-04-17 21:40:28 +00:00
WinEH
X86 [SelectionDAG] Use known ones to provide a better bound for the known zeros for CTTZ/CTLZ operations. 2017-05-01 16:08:06 +00:00
XCore In visitSTORE, always use FindBetterChain, rather than only when UseAA is enabled. 2017-03-14 00:34:14 +00:00