summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorHiroshi Inoue <inouehrs@jp.ibm.com>2018-10-12 14:02:20 +0000
committerHiroshi Inoue <inouehrs@jp.ibm.com>2018-10-12 14:02:20 +0000
commit9552dd187aadd92aeacda13ad4294be12ebe85ab (patch)
tree9a86aed6ec0c14911d055cd10d6164019beea7f0 /llvm/lib/CodeGen/SelectionDAG
parent6cbb3ca456e3bf0405c54b5a593c86673606a5ea (diff)
downloadbcm5719-llvm-9552dd187aadd92aeacda13ad4294be12ebe85ab.tar.gz
bcm5719-llvm-9552dd187aadd92aeacda13ad4294be12ebe85ab.zip
[PowerPC] avoid masking already-zero bits in BitPermutationSelector
The current BitPermutationSelector generates a code to build a value by tracking two types of bits: ConstZero and Variable. ConstZero means a bit we need to mask off and Variable is a bit we copy from an input value. This patch add third type of bits VariableKnownToBeZero caused by AssertZext node or zero-extending load node. VariableKnownToBeZero means a bit comes from an input value, but it is known to be already zero. So we do not need to mask them. VariableKnownToBeZero enhances flexibility to group bits, since we can avoid redundant masking for these bits. This patch also renames "HasZero" to "NeedMask" since now we may skip masking even when we have zeros (of type VariableKnownToBeZero). Differential Revision: https://reviews.llvm.org/D48025 llvm-svn: 344347
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud