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

Side by Side Diff: src/IceInst.cpp

Issue 1904233002: Subzero: Fix over-aggressive bool folding. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Hack for pure virtual method Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « src/IceInst.h ('k') | src/IceIntrinsics.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceInst.cpp - High-level instruction implementation ----===// 1 //===- subzero/src/IceInst.cpp - High-level instruction implementation ----===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 LREndedBits RightMask = OrigInst->LiveRangesEnded >> (Index + 1); 181 LREndedBits RightMask = OrigInst->LiveRangesEnded >> (Index + 1);
182 LiveRangesEnded = LeftMask | (SpliceAssn->LiveRangesEnded << Index) | 182 LiveRangesEnded = LeftMask | (SpliceAssn->LiveRangesEnded << Index) |
183 (RightMask << (Index + getSrc(I)->getNumVars())); 183 (RightMask << (Index + getSrc(I)->getNumVars()));
184 return; 184 return;
185 } 185 }
186 Index += getSrc(I)->getNumVars(); 186 Index += getSrc(I)->getNumVars();
187 } 187 }
188 llvm::report_fatal_error("Failed to find splice operand"); 188 llvm::report_fatal_error("Failed to find splice operand");
189 } 189 }
190 190
191 bool Inst::isMemoryWrite() const {
192 llvm::report_fatal_error("Attempt to call base Inst::isMemoryWrite() method");
193 }
194
191 void Inst::livenessLightweight(Cfg *Func, LivenessBV &Live) { 195 void Inst::livenessLightweight(Cfg *Func, LivenessBV &Live) {
192 assert(!isDeleted()); 196 assert(!isDeleted());
193 resetLastUses(); 197 resetLastUses();
194 VariablesMetadata *VMetadata = Func->getVMetadata(); 198 VariablesMetadata *VMetadata = Func->getVMetadata();
195 FOREACH_VAR_IN_INST(Var, *this) { 199 FOREACH_VAR_IN_INST(Var, *this) {
196 if (VMetadata->isMultiBlock(Var)) 200 if (VMetadata->isMultiBlock(Var))
197 continue; 201 continue;
198 SizeT Index = Var->getIndex(); 202 SizeT Index = Var->getIndex();
199 if (Live[Index]) 203 if (Live[Index])
200 continue; 204 continue;
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 // upper 32 bits of rax. We need to recognize and preserve these. 1066 // upper 32 bits of rax. We need to recognize and preserve these.
1063 return true; 1067 return true;
1064 } 1068 }
1065 if (!Dest->hasReg() && !SrcVar->hasReg() && 1069 if (!Dest->hasReg() && !SrcVar->hasReg() &&
1066 Dest->getStackOffset() == SrcVar->getStackOffset()) 1070 Dest->getStackOffset() == SrcVar->getStackOffset())
1067 return true; 1071 return true;
1068 return false; 1072 return false;
1069 } 1073 }
1070 1074
1071 } // end of namespace Ice 1075 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceInst.h ('k') | src/IceIntrinsics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698