mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Make isVectorClearMaskLegal's operand list const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49446 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
920c6828ee
commit
7d8143f0ef
@ -268,7 +268,7 @@ public:
|
||||
/// used by Targets can use this to indicate if there is a suitable
|
||||
/// VECTOR_SHUFFLE that can be used to replace a VAND with a constant
|
||||
/// pool entry.
|
||||
virtual bool isVectorClearMaskLegal(std::vector<SDOperand> &BVOps,
|
||||
virtual bool isVectorClearMaskLegal(const std::vector<SDOperand> &BVOps,
|
||||
MVT::ValueType EVT,
|
||||
SelectionDAG &DAG) const {
|
||||
return false;
|
||||
|
@ -5602,9 +5602,10 @@ X86TargetLowering::isShuffleMaskLegal(SDOperand Mask, MVT::ValueType VT) const {
|
||||
X86::isUNPCKH_v_undef_Mask(Mask.Val));
|
||||
}
|
||||
|
||||
bool X86TargetLowering::isVectorClearMaskLegal(std::vector<SDOperand> &BVOps,
|
||||
MVT::ValueType EVT,
|
||||
SelectionDAG &DAG) const {
|
||||
bool
|
||||
X86TargetLowering::isVectorClearMaskLegal(const std::vector<SDOperand> &BVOps,
|
||||
MVT::ValueType EVT,
|
||||
SelectionDAG &DAG) const {
|
||||
unsigned NumElts = BVOps.size();
|
||||
// Only do shuffles on 128-bit vector types for now.
|
||||
if (MVT::getSizeInBits(EVT) * NumElts == 64) return false;
|
||||
|
@ -420,7 +420,7 @@ namespace llvm {
|
||||
/// used by Targets can use this to indicate if there is a suitable
|
||||
/// VECTOR_SHUFFLE that can be used to replace a VAND with a constant
|
||||
/// pool entry.
|
||||
virtual bool isVectorClearMaskLegal(std::vector<SDOperand> &BVOps,
|
||||
virtual bool isVectorClearMaskLegal(const std::vector<SDOperand> &BVOps,
|
||||
MVT::ValueType EVT,
|
||||
SelectionDAG &DAG) const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user