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

Unified Diff: src/IceTargetLoweringX86Base.h

Issue 1436623002: Improve bool folding (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Enabled fcmp folding and test Created 5 years, 1 month 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 | « no previous file | src/IceTargetLoweringX86BaseImpl.h » ('j') | src/IceTargetLoweringX86BaseImpl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLoweringX86Base.h
diff --git a/src/IceTargetLoweringX86Base.h b/src/IceTargetLoweringX86Base.h
index bd09b5d2eb01b5f47dce3e052eda616daa342d31..ff054b2b347c8112da0d600676dea196cc5f3c5a 100644
--- a/src/IceTargetLoweringX86Base.h
+++ b/src/IceTargetLoweringX86Base.h
@@ -722,6 +722,10 @@ private:
/// Emit the code for a combined compare and branch, or sets the destination
Jim Stichnoth 2015/11/11 14:05:20 Nit 1: "set" instead of "sets". Nit 2: "if Br == n
sehr 2015/11/13 06:00:52 Doxygen is over my head :-). Done otherwise.
/// variable of the compare if branch is nullptr.
+ void lowerFcmpAndBr(const InstFcmp *Fcmp, const InstBr *Br);
+
+ /// Emit the code for a combined compare and branch, or sets the destination
+ /// variable of the compare if branch is nullptr.
void lowerIcmpAndBr(const InstIcmp *Icmp, const InstBr *Br);
/// Emit a setcc instruction if Br == nullptr; otherwise emit a branch.
@@ -731,6 +735,9 @@ private:
/// Emit a mov [1|0] instruction if Br == nullptr; otherwise emit a branch.
void movOrBr(bool IcmpResult, Variable *Dest, const InstBr *Br);
+ /// Emit the code for a combined arithmetic instruction and branch.
+ void lowerArithAndBr(const InstArithmetic *Arith, const InstBr *Br);
+
/// Complains loudly if invoked because the cpu can handle 64-bit types
/// natively.
template <typename T = Traits>
« no previous file with comments | « no previous file | src/IceTargetLoweringX86BaseImpl.h » ('j') | src/IceTargetLoweringX86BaseImpl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698