Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1150)

Unified Diff: src/IceInstX8632.cpp

Issue 1127963004: Subzero ARM: lowerArguments (GPR), basic legalize(), and lowerRet(i32, i64). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: fix warnings, etc Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceInstX8632.h ('k') | src/IceOperand.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInstX8632.cpp
diff --git a/src/IceInstX8632.cpp b/src/IceInstX8632.cpp
index 2ac95db35f5ee2854d75397549986c669dc81be6..e7863cabdedb363af214474f65c304df0917fb65 100644
--- a/src/IceInstX8632.cpp
+++ b/src/IceInstX8632.cpp
@@ -889,22 +889,6 @@ void emitIASMovlikeXMM(const Cfg *Func, const Variable *Dest,
}
}
-bool checkForRedundantAssign(const Variable *Dest, const Operand *Source) {
- const auto SrcVar = llvm::dyn_cast<const Variable>(Source);
- if (!SrcVar)
- return false;
- if (Dest->hasReg() && Dest->getRegNum() == SrcVar->getRegNum()) {
- // TODO: On x86-64, instructions like "mov eax, eax" are used to
- // clear the upper 32 bits of rax. We need to recognize and
- // preserve these.
- return true;
- }
- if (!Dest->hasReg() && !SrcVar->hasReg() &&
- Dest->getStackOffset() == SrcVar->getStackOffset())
- return true;
- return false;
-}
-
// In-place ops
template <> const char *InstX8632Bswap::Opcode = "bswap";
template <> const char *InstX8632Neg::Opcode = "neg";
« no previous file with comments | « src/IceInstX8632.h ('k') | src/IceOperand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698