summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-04-19 18:05:06 +0000
committerSanjay Patel <spatel@rotateright.com>2017-04-19 18:05:06 +0000
commitded7d59f0ea989d1878a5f997a25c5e1578bb437 (patch)
treecde52971582637af83163fbcb32f0e2e8895eb87 /llvm/lib/Target
parent3fa4bb402475195e898b2a1baf56dd85d0367398 (diff)
downloadbcm5719-llvm-ded7d59f0ea989d1878a5f997a25c5e1578bb437.tar.gz
bcm5719-llvm-ded7d59f0ea989d1878a5f997a25c5e1578bb437.zip
[DAG] add splat vector support for 'and' in SimplifyDemandedBits
The patch itself is simple: stop discriminating against vectors in visitAnd() and again in SimplifyDemandedBits(). Some notes for reference: 1. We're not consistent about calls to SimplifyDemandedBits in the various visitXXX functions. Sometimes, we check if the RHS is a constant first. Other times (like here), we just dive in. 2. I'd like to break the vector shackles in steps for the sake of risk minimization, but we could make similar simultaneous changes in other places if we think that would be better. 3. I don't know what the intent of the changed tests in this patch was supposed to be, but since they wiggled in a positive way, I'm just going with that. :) 4. In the rotate tests, note that we can see through non-splat constants. This is a result of D24253. 5. My motivation for being here now is to make D31944 look better, so this is step 1 of N towards improving the vector codegen in that patch without writing any actual new code. Differential Revision: https://reviews.llvm.org/D32230 llvm-svn: 300725
Diffstat (limited to 'llvm/lib/Target')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud