diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-04-30 22:49:28 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-04-30 22:49:28 +0000 |
commit | 3484da9479a4daff3efc7febe004e1f4d69b3b4a (patch) | |
tree | b635dd293a2073de9c87b543a3f35cc50ecd9fd8 /lib/CodeGen/Analysis.cpp | |
parent | 8e229c24ed8b8a9a3866947a709e616b33780f1f (diff) |
Only pass 'returned' to target-specific lowering code when the value of entire register is guaranteed to be preserved.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180825 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Analysis.cpp')
-rw-r--r-- | lib/CodeGen/Analysis.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/CodeGen/Analysis.cpp b/lib/CodeGen/Analysis.cpp index e2b2067b0c..4731af5089 100644 --- a/lib/CodeGen/Analysis.cpp +++ b/lib/CodeGen/Analysis.cpp @@ -269,8 +269,6 @@ static bool sameNoopInput(const Value *V1, const Value *V2, i != e; ++i) { unsigned attrInd = i - I->op_begin() + 1; if (cast<CallInst>(I)->paramHasAttr(attrInd, Attribute::Returned) && - !cast<CallInst>(I)->paramHasAttr(attrInd, Attribute::ZExt) && - !cast<CallInst>(I)->paramHasAttr(attrInd, Attribute::SExt) && isNoopBitcast((*i)->getType(), I->getType(), TLI)) { NoopInput = *i; break; @@ -284,8 +282,6 @@ static bool sameNoopInput(const Value *V1, const Value *V2, i != e; ++i) { unsigned attrInd = i - I->op_begin() + 1; if (cast<InvokeInst>(I)->paramHasAttr(attrInd, Attribute::Returned) && - !cast<InvokeInst>(I)->paramHasAttr(attrInd, Attribute::ZExt) && - !cast<InvokeInst>(I)->paramHasAttr(attrInd, Attribute::SExt) && isNoopBitcast((*i)->getType(), I->getType(), TLI)) { NoopInput = *i; break; |