]> granicus.if.org Git - llvm/commit
[AArch64] Fix useful bits detection for BFM instructions
authorSilviu Baranga <silviu.baranga@arm.com>
Wed, 30 Nov 2016 17:04:22 +0000 (17:04 +0000)
committerSilviu Baranga <silviu.baranga@arm.com>
Wed, 30 Nov 2016 17:04:22 +0000 (17:04 +0000)
commit88948ad1d3271c40709bd931b1822b5710aa3e9f
tree208d64bab2059f25b4c764c80d98bbb0fff537a9
parent7a578c9156f32c77d5b71c5f9f4cc0923fadb41c
[AArch64] Fix useful bits detection for BFM instructions

Summary:
When computing useful bits for a BFM instruction, we need
to take into consideration the case where both operands
of the BFM are equal and provide data that we need to track.

Not doing this can cause us to miss useful bits.

Fixes PR31138 (https://llvm.org/bugs/show_bug.cgi?id=31138)

Reviewers: t.p.northover, jmolloy

Subscribers: evandro, gberry, srhines, pirama, mcrosier, aemerson, llvm-commits, rengolin

Differential Revision: https://reviews.llvm.org/D27130

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288253 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
test/CodeGen/AArch64/arm64-bitfield-extract.ll