Make isOperationLegal do what its name suggests, and introduce a
authorDan Gohman <gohman@apple.com>
Wed, 28 Jan 2009 17:46:25 +0000 (17:46 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 28 Jan 2009 17:46:25 +0000 (17:46 +0000)
commitf560ffae1f1f6591859c7b70636a3eca6c03f083
treeffaa2ae20af1840dd6fd005b05f29b659c045bb7
parent0b3aa26384ff37597f1d686a834252f97a619380
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63212 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp