mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
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:
parent
601d3c0145
commit
3dd168d445
@ -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