commit | eaaa4f4cfc8fd35f40b46e409fd9b8c4482bad37 | [log] [tgz] |
---|---|---|
author | Diogo N. Sampaio <diogo.sampaio@arm.com> | Fri Jul 06 09:42:25 2018 +0000 |
committer | Diogo N. Sampaio <diogo.sampaio@arm.com> | Fri Jul 06 09:42:25 2018 +0000 |
tree | 68650dfcafbac419f52373036d93397ef95528f6 | |
parent | 681dbd52d122a13d679d8624b1a0a37302576780 [diff] |
[SelectionDAG] https://reviews.llvm.org/D48278 D48278 Allow to reduce redundant shift masks. For example: x1 = x & 0xAB00 x2 = (x >> 8) & 0xAB can be reduced to: x1 = x & 0xAB00 x2 = x1 >> 8 It only allows folding when the masks and shift values are constants. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336426 91177308-0d34-0410-b5e6-96231b3b80d8