mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +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