Simon Pilgrim b8652fbcbb [X86] Fold AND(SRL(X,Y),1) -> SETCC(BT(X,Y)) (RECOMMITTED)
As noticed on PR39174, if we're extracting a single non-constant bit index, then try to use BT+SETCC instead to avoid messing around moving the shift amount to the ECX register, using slow x86 shift ops etc.

Recommitted with a fix to ensure we zext/trunc the SETCC result to the original type.

Differential Revision: https://reviews.llvm.org/D122891
2022-04-01 16:59:06 +01:00
..
2021-12-20 12:55:32 -08:00
2022-03-10 09:29:06 +08:00
2021-09-17 15:48:55 +02:00
2021-07-27 12:09:25 +01:00
2021-08-16 13:13:56 +01:00
2022-03-30 09:51:36 +01:00
2022-01-17 19:02:44 +00:00
2022-01-26 12:32:49 +00:00
2022-03-31 16:45:05 +02:00
2021-05-24 12:09:02 -07:00
2022-03-31 10:54:27 +01:00