]> granicus.if.org Git - llvm/commit
[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)
commit013125cca774813c861cb9dcd63f08899fa0e0cb
treed3cb7a3659e2d24c3506e87950a7a768bb7ebcea
parenta1986434f82972e45d3496147554d88c2d1635c3
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303607 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp
test/CodeGen/AArch64/optimize-imm.ll