diff options
author | Dan Gohman <gohman@apple.com> | 2009-01-28 17:46:25 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-01-28 17:46:25 +0000 |
commit | 4aa1846215adde37dea5b534d5278a96addcc324 (patch) | |
tree | 278d980368e8125190909aedbf91ff15f73e8419 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | |
parent | fb034663885239079329e40d57eb59e32e08fa1a (diff) | |
download | bcm5719-llvm-4aa1846215adde37dea5b534d5278a96addcc324.tar.gz bcm5719-llvm-4aa1846215adde37dea5b534d5278a96addcc324.zip |
Make isOperationLegal do what its name suggests, and introduce a
new isOperationLegalOrCustom, which does what isOperationLegal
previously did.
Update a bunch of callers to use isOperationLegalOrCustom
instead of isOperationLegal. In some case it wasn't obvious
which behavior is desired; when in doubt I changed then to
isOperationLegalOrCustom as that preserves their previous
behavior.
This is for the second half of PR3376.
llvm-svn: 63212
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index b543b9e63fd..a0154cb0a0d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -1588,8 +1588,8 @@ bool SelectionDAGLowering::handleSmallSwitchRange(CaseRec& CR, static inline bool areJTsAllowed(const TargetLowering &TLI) { return !DisableJumpTables && - (TLI.isOperationLegal(ISD::BR_JT, MVT::Other) || - TLI.isOperationLegal(ISD::BRIND, MVT::Other)); + (TLI.isOperationLegalOrCustom(ISD::BR_JT, MVT::Other) || + TLI.isOperationLegalOrCustom(ISD::BRIND, MVT::Other)); } static APInt ComputeRange(const APInt &First, const APInt &Last) { |