OBSERVATION AND ANALYSIS BASED CODE OPTIMIZATION

Patent №

US 9,195,486

Granted

2015-11-24

Filed 2010

Owner

APPLE INC.

Lab

AI components

1

hardware

Assignment

Recorded

Dataset

AIPD

2023_r1 edition

Application

12847945

Observation and analysis based optimization of software code is disclosed. An expected value is chosen for a dynamic attribute that cannot be determined, prior to execution of the associated software code, to be guaranteed to have that expected value at runtime. An optimized version of the software code is generated, including one or more optimizations based on an assumption that the dynamic attribute will have the expected value. Non-exhaustive examples of a dynamic attribute include a variable type; a location in memory; a location in which a global object, property, or variable is stored; the contents of a global function or method; and a value of a global property or variable. A check is performed during execution of the optimized version of the software code, prior to executing the portion that has been optimized based on the assumption, to verify that the dynamic attribute has the expected value. In the event that it is determined at runtime that the dynamic attribute does not have the expected value, execution reverts to backup code that is not based on the assumption that dynamic attribute will have the expected value.

AI hardwareG06F 9/45525G06F 8/4441G06F 11/30

AI classification

AI hardware1.00
Knowledge representation0.14
Planning0.10
Evolutionary computation0.00
Vision0.00
Natural language0.00
Machine learning0.00
Speech0.00

Ownership

APPLE INC.

assignment · 247700819

Assignors

PORRAS, VICTOR LEONEL HERNANDEZ, LATTNER, CHRISTOPHER ARTHUR, CHEN, JIA-HONG, CHRISTOPHER, ERIC MARSHALL, HOOVER, ROGER SCOTT, JOUAUX, FRANCOIS, MCCALL, ROBERT JOHN, O'BRIEN, THOMAS JOHN, SOLANKI, PRATIK

On an employer assignment, the assignors are typically the inventors.

© 2026 NYSGPT2525 LLC