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

Unified Diff: src/IceInstARM32.cpp

Issue 1234803007: Introduction of improved switch lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Formatting tweaks. Created 5 years, 5 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/IceInstARM32.cpp
diff --git a/src/IceInstARM32.cpp b/src/IceInstARM32.cpp
index e95f6b111579c374e0cc8d35d2b744f78f783bfc..ddc94a7bf83669b79c1f3e14365d283b0207c013 100644
--- a/src/IceInstARM32.cpp
+++ b/src/IceInstARM32.cpp
@@ -277,15 +277,17 @@ bool InstARM32Br::optimizeBranch(const CfgNode *NextNode) {
return false;
}
-bool InstARM32Br::repointEdge(CfgNode *OldNode, CfgNode *NewNode) {
+bool InstARM32Br::repointEdges(CfgNode *OldNode, CfgNode *NewNode) {
+ bool Found = false;
if (TargetFalse == OldNode) {
TargetFalse = NewNode;
- return true;
- } else if (TargetTrue == OldNode) {
+ Found = true;
+ }
+ if (TargetTrue == OldNode) {
TargetTrue = NewNode;
- return true;
+ Found = true;
}
- return false;
+ return Found;
}
InstARM32Call::InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget)
« no previous file with comments | « src/IceInstARM32.h ('k') | src/IceInstX86Base.h » ('j') | src/IceRegistersX8632.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698