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

Unified Diff: src/IceTargetLowering.cpp

Issue 2380023002: [SubZero] Vector types support for MIPS (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressed review comments Created 4 years, 2 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
Index: src/IceTargetLowering.cpp
diff --git a/src/IceTargetLowering.cpp b/src/IceTargetLowering.cpp
index 0ac6e8bee8f9a67b7c6c29f82b0312abab8c7a51..458681c5059ab7f7b6f9257d9a5ef54166d1da6d 100644
--- a/src/IceTargetLowering.cpp
+++ b/src/IceTargetLowering.cpp
@@ -715,6 +715,10 @@ void TargetLowering::addFakeDefUses(const Inst *Instr) {
if (auto *Var64 = llvm::dyn_cast<Variable64On32>(Var)) {
Context.insert<InstFakeUse>(Var64->getLo());
Context.insert<InstFakeUse>(Var64->getHi());
+ } else if (auto *VarVec = llvm::dyn_cast<VariableVecOn32>(Var)) {
+ for (Variable *Var : VarVec->getContainers()) {
+ Context.insert<InstFakeUse>(Var);
+ }
} else {
Context.insert<InstFakeUse>(Var);
}
@@ -725,6 +729,10 @@ void TargetLowering::addFakeDefUses(const Inst *Instr) {
if (auto *Var64 = llvm::dyn_cast<Variable64On32>(Dest)) {
Context.insert<InstFakeDef>(Var64->getLo());
Context.insert<InstFakeDef>(Var64->getHi());
+ } else if (auto *VarVec = llvm::dyn_cast<VariableVecOn32>(Dest)) {
+ for (Variable *Var : VarVec->getContainers()) {
+ Context.insert<InstFakeDef>(Var);
+ }
} else {
Context.insert<InstFakeDef>(Dest);
}

Powered by Google App Engine
This is Rietveld 408576698