Change TargetLowering::isCondCodeLegal to take an MVT, instead of EVT.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170524 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Patrik Hagglund
2012-12-19 10:19:55 +00:00
parent 16537418f4
commit fdbeb057b8
3 changed files with 18 additions and 15 deletions

View File

@@ -524,10 +524,10 @@ public:
/// isCondCodeLegal - Return true if the specified condition code is legal
/// on this target.
bool isCondCodeLegal(ISD::CondCode CC, EVT VT) const {
bool isCondCodeLegal(ISD::CondCode CC, MVT VT) const {
return
getCondCodeAction(CC, VT.getSimpleVT()) == Legal ||
getCondCodeAction(CC, VT.getSimpleVT()) == Custom;
getCondCodeAction(CC, VT) == Legal ||
getCondCodeAction(CC, VT) == Custom;
}