summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TextAPI/ELF/TBEHandler.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-12-06 23:50:32 +0000
committerNikita Popov <nikita.ppv@gmail.com>2018-12-06 23:50:32 +0000
commitcf65b9207b58e09e9a763ff4f1aed8687c086f37 (patch)
treefb4f1ad71d2375dcd7e2116a7c298af4e32404b4 /llvm/lib/TextAPI/ELF/TBEHandler.cpp
parentd7b6b62debd6508d40070a0a3b216f39cd7f6b5f (diff)
downloadbcm5719-llvm-cf65b9207b58e09e9a763ff4f1aed8687c086f37.tar.gz
bcm5719-llvm-cf65b9207b58e09e9a763ff4f1aed8687c086f37.zip
[DemandedBits][BDCE] Support vectors of integers
DemandedBits and BDCE currently only support scalar integers. This patch extends them to also handle vector integer operations. In this case bits are not tracked for individual vector elements, instead a bit is demanded if it is demanded for any of the elements. This matches the behavior of computeKnownBits in ValueTracking and SimplifyDemandedBits in InstCombine. The getDemandedBits() method can now only be called on instructions that have integer or vector of integer type. Previously it could be called on any sized instruction (even if it was not particularly useful). The size of the return value is now always the scalar size in bits (while previously it was the type size in bits). Differential Revision: https://reviews.llvm.org/D55297 llvm-svn: 348549
Diffstat (limited to 'llvm/lib/TextAPI/ELF/TBEHandler.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud