llvm-mos
llvm-mos copied to clipboard
Lower mem intrinsics to loops
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.