]> granicus.if.org Git - llvm/commit
[TargetLowering] SimplifyDemandedBits - call SimplifyDemandedBits in bitcast handling
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 9 Apr 2019 10:27:59 +0000 (10:27 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 9 Apr 2019 10:27:59 +0000 (10:27 +0000)
commit6aaa856e179f33a05a47db3666821d2ae44c9afc
tree78804ce06353e9be8b86fc540dcd205fdebf099b
parent76b1cf8a46f85e24e4df4e2619b621314c20586e
[TargetLowering] SimplifyDemandedBits - call SimplifyDemandedBits in bitcast handling

When bitcasting from a source op to a larger bitwidth op, split the demanded bits and OR them on top of one another and demand those merged bits in the SimplifyDemandedBits call on the source op.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357992 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/X86/urem-seteq-vec-nonsplat.ll