]> git.eshelyaron.com Git - emacs.git/commitdiff
Better function naming for comp-function-call-maybe-remove
authorAndrea Corallo <akrl@sdf.org>
Sun, 9 Feb 2020 14:12:51 +0000 (15:12 +0100)
committerAndrea Corallo <akrl@sdf.org>
Fri, 14 Feb 2020 22:26:20 +0000 (23:26 +0100)
lisp/emacs-lisp/comp.el

index 4ec84563f38ea33f4120a052cf39e66d9219d4aa..2d609f0527c4e3fc322775a3646038b8ff3e4da6 100644 (file)
@@ -1599,7 +1599,7 @@ This can run just once."
             ('/ (and (cl-every #'fixnump values)
                      (not (= (car (last values)) 0)))))))))
 
-(defsubst comp-function-call-remove (insn f args)
+(defsubst comp-function-call-maybe-remove (insn f args)
   "Given INSN when F is pure if all ARGS are known remove the function call."
   (when (comp-function-optimizable f args)
     (ignore-errors
@@ -1620,13 +1620,11 @@ This can run just once."
        (`(,(or 'call 'direct-call) ,f . ,args)
         (setf (comp-mvar-type lval)
               (alist-get f comp-known-ret-types))
-        (comp-function-call-remove insn f args))
+        (comp-function-call-maybe-remove insn f args))
        (`(,(or 'callref 'direct-callref) ,f . ,args)
-        (cl-loop for v in args
-                 do (setf (comp-mvar-ref v) t))
         (setf (comp-mvar-type lval)
               (alist-get f comp-known-ret-types))
-        (comp-function-call-remove insn f args))
+        (comp-function-call-maybe-remove insn f args))
        (_
         (comp-mvar-propagate lval rval))))
     (`(phi ,lval . ,rest)