Don't recompute something that we already have in a local variable.

llvm-svn: 127764
This commit is contained in:
Cameron Zwarich 2011-03-16 22:20:07 +00:00
parent fd95b016fb
commit d1ad9bc277
1 changed files with 2 additions and 2 deletions

View File

@ -1151,9 +1151,9 @@ void SelectionDAGBuilder::visitRet(const ReturnInst &I) {
Flags.setInReg();
// Propagate extension type if any
if (F->paramHasAttr(0, Attribute::SExt))
if (ExtendKind == ISD::SIGN_EXTEND)
Flags.setSExt();
else if (F->paramHasAttr(0, Attribute::ZExt))
else if (ExtendKind == ISD::ZERO_EXTEND)
Flags.setZExt();
for (unsigned i = 0; i < NumParts; ++i) {