[前][次][番号順一覧][スレッド一覧]

ruby-changes:73267

From: Alan <ko1@a...>
Date: Tue, 30 Aug 2022 01:05:16 +0900 (JST)
Subject: [ruby-changes:73267] 8fffff536d (master): More concise csel with Into

https://git.ruby-lang.org/ruby.git/commit/?id=8fffff536d

From 8fffff536db7d603c6caef80d11c0926d59b1001 Mon Sep 17 00:00:00 2001
From: Alan Wu <XrXr@u...>
Date: Fri, 5 Aug 2022 14:41:55 -0400
Subject: More concise csel with Into

---
 yjit/src/codegen.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs
index 76874cf758..78120a5995 100644
--- a/yjit/src/codegen.rs
+++ b/yjit/src/codegen.rs
@@ -2448,7 +2448,7 @@ fn gen_equality_specialized( https://github.com/ruby/ruby/blob/trunk/yjit/src/codegen.rs#L2448
 
         asm.cmp(a_opnd, b_opnd);
 
-        let val = asm.csel_ne(Opnd::Imm(Qfalse.into()), Opnd::Imm(Qtrue.into()));
+        let val = asm.csel_ne(Qfalse.into(), Qtrue.into());
 
         // Push the output on the stack
         ctx.stack_pop(2);
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]