summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2016-05-12 01:42:01 +0000
committerChad Rosier <mcrosier@codeaurora.org>2016-05-12 01:42:01 +0000
commit9926a5e31de0834d7a70bf1837777b94a72e5111 (patch)
treeab4cd975d577cdb9bb79569fcd2a33c30caacffd /llvm/lib
parent8d3b1791ed96c2e6cb80825a2867494d794e6600 (diff)
downloadbcm5719-llvm-9926a5e31de0834d7a70bf1837777b94a72e5111.tar.gz
bcm5719-llvm-9926a5e31de0834d7a70bf1837777b94a72e5111.zip
[AArch64] Add support for unscaled narrow stores in getUsefulBitsForUse.
llvm-svn: 269263
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
index 1949cd7c30e..8a48a96a632 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
@@ -1851,12 +1851,14 @@ static void getUsefulBitsForUse(SDNode *UserNode, APInt &UsefulBits,
return getUsefulBitsFromBFM(SDValue(UserNode, 0), Orig, UsefulBits, Depth);
case AArch64::STRBBui:
+ case AArch64::STURBBi:
if (UserNode->getOperand(0) != Orig)
return;
UsefulBits &= APInt(UsefulBits.getBitWidth(), 0xff);
return;
case AArch64::STRHHui:
+ case AArch64::STURHHi:
if (UserNode->getOperand(0) != Orig)
return;
UsefulBits &= APInt(UsefulBits.getBitWidth(), 0xffff);
OpenPOWER on IntegriCloud