Example #1
0
 def optimize_COND_CALL_VALUE_I(self, op):
     # look if we know the nullness of the first argument
     info = self.getnullness(op.getarg(0))
     if info == INFO_NONNULL:
         self.make_equal_to(op, op.getarg(0))
         self.last_emitted_operation = REMOVED
         return
     if info == INFO_NULL:
         opnum = OpHelpers.call_pure_for_type(op.type)
         op = self.replace_op_with(op, opnum, args=op.getarglist()[1:])
     return self.emit(op)