mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
DAG: Fix naming crime
Because isOperationCustom was only checking for custom lowering on illegal types, this was behaving inconsistently with the other isOperation* functions, so that isOperationLegalOrCustom != (isOperationLegal || isOperationCustom) Luckily this is only used in one place which already checks the type legality on its own. llvm-svn: 311743
This commit is contained in:
parent
c874810cb1
commit
1286bf2696
@ -790,11 +790,10 @@ public:
|
||||
getOperationAction(Op, VT) == Promote);
|
||||
}
|
||||
|
||||
/// Return true if the specified operation is illegal but has a custom lowering
|
||||
/// on that type. This is used to help guide high-level lowering
|
||||
/// decisions.
|
||||
/// Return true if the operation uses custom lowering, regardless of whether
|
||||
/// the type is legal or not.
|
||||
bool isOperationCustom(unsigned Op, EVT VT) const {
|
||||
return (!isTypeLegal(VT) && getOperationAction(Op, VT) == Custom);
|
||||
return getOperationAction(Op, VT) == Custom;
|
||||
}
|
||||
|
||||
/// Return true if lowering to a jump table is allowed.
|
||||
|
Loading…
Reference in New Issue
Block a user