llvm-mos icon indicating copy to clipboard operation
llvm-mos copied to clipboard

Lower mem intrinsics to loops

Open mysterymath opened this issue 2 years ago • 0 comments

For simple cases, it can be faster and smaller to directly emit a loop than to emit a call to a mem function. We should identify these cases and emit an inline loop. This is a similarly important optimization to the constant multiply one, since actual user loops are normalized to these intrinsics.

mysterymath avatar Jan 27 '24 16:01 mysterymath