summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonGenPredicate.cpp
diff options
context:
space:
mode:
authorStefan Pintilie <stefanp@ca.ibm.com>2019-05-24 12:05:37 +0000
committerStefan Pintilie <stefanp@ca.ibm.com>2019-05-24 12:05:37 +0000
commit522307fa40da4b4d892e273c058418e112d844a4 (patch)
tree3779970bb54487bc7086916edbabea054548c22e /llvm/lib/Target/Hexagon/HexagonGenPredicate.cpp
parent33bee053c39b46c6aa46abca6cc758979da44b14 (diff)
downloadbcm5719-llvm-522307fa40da4b4d892e273c058418e112d844a4.tar.gz
bcm5719-llvm-522307fa40da4b4d892e273c058418e112d844a4.zip
[PowerPC] Remove CRBits Copy Of Unset/set CBit
For the situation, where we generate the following code: crxor 8, 8, 8 < Some instructions> .LBB0_1: < Some instructions> cror 1, 8, 8 cror (COPY of CRbit) depends on the result of the crxor instruction. CR8 is known to be zero as crxor is equivalent to CRUNSET. We can simply use crxor 1, 1, 1 instead to zero out CR1, which does not have any dependency on any previous instruction. This patch will optimize it to: < Some instructions> .LBB0_1: < Some instructions> cror 1, 1, 1 Patch By: Victor Huang (NeHuang) Differential Revision: https://reviews.llvm.org/D62044 llvm-svn: 361632
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonGenPredicate.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud