Fix a search+replace-o.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55824 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-09-05 01:58:21 +00:00
parent 601d3c0145
commit 3dd168d445

View File

@ -3491,7 +3491,7 @@ SDValue DAGCombiner::visitBIT_CONVERT(SDNode *N) {
}
}
// If the input is a constant, let Val fold it.
// If the input is a constant, let getNode fold it.
if (isa<ConstantSDNode>(N0) || isa<ConstantFPSDNode>(N0)) {
SDValue Res = DAG.getNode(ISD::BIT_CONVERT, VT, N0);
if (Res.getNode() != N) return Res;