# New Ticket Created by Curtis Rawls # Please include the string: [perl #36026] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36026 >
The first patch (optimizer.patch) does cleanup/refactoring/improvements to the strength_reduce() function in optimizer.c . Changes include: -Modified if statements to use opcodes for instructions found in parrot/oplib/ops.h, improving readability (suggested by leo). -Refactored, grouping instruction rules into logical sections (2 vs 3 operands, identity properties, zero property of multiplication, etc). -Added some missing optimization opportunities (e.g. add Ix, Iy, Ix => add Ix, Iy, all fdiv instructions). The second patch (test.patch) adds two types of tests: -Tests for the addition of "fdiv" instruction operations. -Some "false positive" tests for sub/div/fdiv -Curtis Rawls
optimizer.patch
Description: Binary data
test.patch
Description: Binary data