mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Simplify the expression for TargetLowering::isTypeLegal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37732 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
acaf32e236
commit
71d7794856
@ -130,9 +130,7 @@ public:
|
||||
/// specified value type. This means that it has a register that directly
|
||||
/// holds it without promotions or expansions.
|
||||
bool isTypeLegal(MVT::ValueType VT) const {
|
||||
return !MVT::isExtendedValueType(VT) ?
|
||||
RegClassForVT[VT] != 0 :
|
||||
false;
|
||||
return !MVT::isExtendedValueType(VT) && RegClassForVT[VT] != 0;
|
||||
}
|
||||
|
||||
class ValueTypeActionImpl {
|
||||
|
Loading…
Reference in New Issue
Block a user