Added (ashr (shl x, 16), 16) pattern to the sext_16_node patleaf which allowed some removal of some pattern matching for ARM instructions and enabled more simple matching for their thumb counterparts, which also operate on the top / bottom 16-bits of a register. Updated the smul test with more patterns and thumb targets.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
The patch looks sensible, but there's a lot of unneeded reorganization. Also, a slightly more descriptive commit message would be nice.
cheers,
--renato
lib/Target/ARM/ARMInstrThumb2.td | ||
---|---|---|
2631 | No need to move this code around, it just makes it harder to git-blame later. | |
2665 | Same here, if you can keep the same order, it's easier to review. | |
test/CodeGen/ARM/smul.ll | ||
10 | Same here, try to keep the same tests on their original positions and namings. |
Comment Actions
LGTM with the nit. Thanks!
lib/Target/ARM/ARMInstrFormats.td | ||
---|---|---|
1002 | You don't seem to be using the first two. Maybe we shouldn't create them "just to complete the pattern"? |
You don't seem to be using the first two. Maybe we shouldn't create them "just to complete the pattern"?