[llvm] r219778 - R600: Use existing variable
Matt Arsenault
Matthew.Arsenault at amd.com
Tue Oct 14 22:07:00 PDT 2014
Author: arsenm
Date: Wed Oct 15 00:07:00 2014
New Revision: 219778
URL: http://llvm.org/viewvc/llvm-project?rev=219778&view=rev
Log:
R600: Use existing variable
Modified:
llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp
Modified: llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp?rev=219778&r1=219777&r2=219778&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp Wed Oct 15 00:07:00 2014
@@ -2146,7 +2146,7 @@ SDValue AMDGPUTargetLowering::PerformDAG
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(),
More information about the llvm-commits
mailing list