Invention Grant
- Patent Title: Compound conditional reordering for faster short-circuiting
-
Application No.: US15953334Application Date: 2018-04-13
-
Publication No.: US11334469B2Publication Date: 2022-05-17
- Inventor: Amit Jayant Sabne , Eric Avi Brumer
- Applicant: Microsoft Technology Licensing, LLC
- Applicant Address: US WA Redmond
- Assignee: Microsoft Technology Licensing, LLC
- Current Assignee: Microsoft Technology Licensing, LLC
- Current Assignee Address: US WA Redmond
- Agency: Alleman Hall Creasman & Tuttle LLP
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F11/36 ; G06F8/41 ; G06F9/30

Abstract:
A computing device is provided, including a processor configured to receive source code at a compiler. The source code may include at least one compound conditional having a plurality of conditions. For each condition of the plurality of conditions, the source code may further include a respective code block including instructions to evaluate the condition. For each ordering of a plurality of orderings of the plurality of conditions, the processor may determine that the ordering satisfies one or more legality constraints. For each ordering of the plurality of orderings that satisfy the one or more legality constraints, the processor may determine a respective estimated computational cost for that ordering. The processor may reorder the plurality of conditions to have an ordering that has a lowest estimated computational cost of the plurality of orderings that satisfy the one or more legality constraints.
Public/Granted literature
- US20190317881A1 COMPOUND CONDITIONAL REORDERING FOR FASTER SHORT-CIRCUITING Public/Granted day:2019-10-17
Information query