Skip to content

x86 backend doesn't lower x%255 to multiply #1317

Closed
@lattner

Description

@lattner
Bugzilla Link 945
Resolution FIXED
Resolved on Feb 22, 2010 12:49
Version 1.0
OS All

Extended Description

Consider:

int test(int X) {
return X%255;
}

The PPC backend lowers this to mulhw+stuff, the X86 backend should too. It is the major reason we are
slower at Benchmarks/Misc/ReedSolomon.c than GCC.

-Chris

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions