mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
Apply a fix for a vector setcc dagcombine from Jan Sjodin. No
testcase yet, as the testcase now fails downstream. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102228 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a870256d7d
commit
a7bcef1bce
@ -3474,8 +3474,9 @@ SDValue DAGCombiner::visitSIGN_EXTEND(SDNode *N) {
|
||||
}
|
||||
|
||||
// sext(setcc x, y, cc) -> (select_cc x, y, -1, 0, cc)
|
||||
unsigned ElementWidth = VT.getScalarType().getSizeInBits();
|
||||
SDValue NegOne =
|
||||
DAG.getConstant(APInt::getAllOnesValue(VT.getSizeInBits()), VT);
|
||||
DAG.getConstant(APInt::getAllOnesValue(ElementWidth), VT);
|
||||
SDValue SCC =
|
||||
SimplifySelectCC(N->getDebugLoc(), N0.getOperand(0), N0.getOperand(1),
|
||||
NegOne, DAG.getConstant(0, VT),
|
||||
|
Loading…
x
Reference in New Issue
Block a user