OSDN Git Service

AArch64: use correct SDValue # when looking for bitfield placement.
authorTim Northover <tnorthover@apple.com>
Tue, 5 Jul 2016 18:02:57 +0000 (18:02 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 5 Jul 2016 18:02:57 +0000 (18:02 +0000)
commit911d377eebb40d699c36d8f60388a868b020728e
tree9cdd0823324bfb15c79b3a9e5489c2f48ca81c51
parent6de48c50fea935049fbed2c4027f36bcdd462dc5
AArch64: use correct SDValue # when looking for bitfield placement.

The other use really does only care about the SDNode (it checks the
opcode against a whitelist), but bitFieldPlacement can be misled if
the node produces multiple results.

Patch by Ismail Badawi.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274567 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
test/CodeGen/AArch64/aarch64-tryBitfieldInsertOpFromOr-crash.ll [new file with mode: 0644]