llvm-project
ef40ae4f - [SelectionDAG] Fix incorrect fold condition in foldSetCCWithFunnelShift. (#137637)

Commit
140 days ago
[SelectionDAG] Fix incorrect fold condition in foldSetCCWithFunnelShift. (#137637) Proposed by [2ed1598](https://github.com/llvm/llvm-project/commit/2ed15984b49a1af87be37ec8bd6ee3ab7f724767): `fshl X, (or X, Y), C ==/!= 0 --> or (srl Y, BW-C), X ==/!= 0` This transformation is valid when (C%Bitwidth) != 0 , as verified by [Alive2](https://alive2.llvm.org/ce/z/TQYM-m). Fixes #136746
Author
Parents
Loading