mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
R600: Use existing variable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219778 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8a55ca3c41
commit
18ed4acf21
@ -2146,7 +2146,7 @@ SDValue AMDGPUTargetLowering::PerformDAGCombine(SDNode *N,
|
||||
return DAG.getZeroExtendInReg(BitsFrom, DL, SmallVT);
|
||||
}
|
||||
|
||||
if (ConstantSDNode *CVal = dyn_cast<ConstantSDNode>(N->getOperand(0))) {
|
||||
if (ConstantSDNode *CVal = dyn_cast<ConstantSDNode>(BitsFrom)) {
|
||||
if (Signed) {
|
||||
return constantFoldBFE<int32_t>(DAG,
|
||||
CVal->getSExtValue(),
|
||||
|
Loading…
Reference in New Issue
Block a user