OSDN Git Service

[ARM] Assert that ARMDAGToDAGISel creates valid UBFX/SBFX nodes.
authorEli Friedman <efriedma@codeaurora.org>
Thu, 28 Jun 2018 21:49:41 +0000 (21:49 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Thu, 28 Jun 2018 21:49:41 +0000 (21:49 +0000)
commit5ff4fbf6b8bb8516e7eff2640542d0eadedddea5
tree1dc85f9a7af0f333677a0b3bca644f876a36801d
parent519acca334339c6e4c78feb3f72057948bc318ab
[ARM] Assert that ARMDAGToDAGISel creates valid UBFX/SBFX nodes.

We don't ever check these again (unless you're using
-fno-integrated-as), so make sure the extracted bits are well-defined.

I don't think it's possible to trigger any of the assertions on trunk,
but it's difficult to prove.  (The first one depends on DAGCombine to
minimize the number of set bits in AND masks; I think the others are
mathematically impossible to hit.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335931 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelDAGToDAG.cpp