# New Ticket Created by Curtis Rawls # Please include the string: [perl #36013] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36013 >
The first patch (optimizer.patch) implement the add and subtract identity rules to the strength reduction optimization in imcc/optimizer.c . The following rules are implemented: add Ix, Iy, 0 => set Ix, Iy add Ix, 0, Iy => set Ix, Iy add Ix, 0 => delete sub Ix, Iy, 0 => set Ix, Iy sub Ix, 0 => delete This code is a modified version of the existing mul/div identity rules. The second patch (test.patch) adds 7 tests to imcc/t/imcpasm/opt1.t that test these rules. Although not that interesting by themselves, these optimizations can enable more interesting optimizations to be performed. -Curtis Rawls
optimizer.patch
Description: Binary data
test.patch
Description: Binary data