[AArch64] Fix PRR33100.
authorAkira Hatanaka <ahatanaka@apple.com>
Tue, 23 May 2017 06:08:37 +0000 (06:08 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Tue, 23 May 2017 06:08:37 +0000 (06:08 +0000)
commite8ae3346a3c9f0a3c1fcefaaedcb5450eb54949a
tree650b849a7ba3fa89fa201a25ffe801a6506a5e1a
parentbeef4d7887474da4f6b864e0ca8b44a4f4b913ec
[AArch64] Fix PRR33100.

This commit fixes a bug introduced in r301019 where optimizeLogicalImm
would replace a logical node's immediate operand that was CSE'd and
was also an operand of another node.

This commit fixes the bug by replacing the logical node instead of its
immediate operand.

rdar://problem/32295276

llvm-svn: 303607
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/optimize-imm.ll