[X86] Replace (31/63 -/^ X) with (NOT X) and ignore (32/64 ^ X) when computing shift count
Shift count is masked by hardware so these peepholes just extend common patterns for NOT to the lower bits of shift count. As well (32/64 ^ X) is masked off by the shift so can be safely ignored. Reviewed By: pengfei, lebedev.ri Differential Revision: https://reviews.llvm.org/D140087
Loading
Please sign in to comment