[ARM] Combine BFIs together
authorJames Molloy <james.molloy@arm.com>
Wed, 11 Nov 2015 15:40:40 +0000 (15:40 +0000)
committerJames Molloy <james.molloy@arm.com>
Wed, 11 Nov 2015 15:40:40 +0000 (15:40 +0000)
commit5e49f41b8d208ddcf4608730d1c28f976be5f1fa
treebb017877ecd1d3341432c6edee7ddd26cac52c95
parentca0bc2bcbc2891b286af3f8040194ea1d9798e38
[ARM] Combine BFIs together

If we have a chain of BFIs, we may be able to combine several together into one merged BFI. We can do this if the "from" bits from one BFI OR'd with the "from" bits from the other BFI form a contiguous range, and the same with the "to" bits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252740 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/bfi.ll