mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Fix a search+replace-o.
llvm-svn: 55824
This commit is contained in:
parent
ce63ed5b47
commit
a3987ed4e2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user