[llvm-commits] [PATCH] Compress Repeated Byte Output
Chris Lattner
clattner at apple.com
Fri Aug 26 09:18:22 PDT 2011
On Aug 26, 2011, at 8:28 AM, David A. Greene wrote:
>> static int isRepeatedByteSequence(const Value *V, TargetMachine &TM) {
>>
>> and have it return 0-255 for success and -1 for failure. It should
>> handle the non-ConstantInt case as well. You could even generalize
>> this predicate to handle structs and subarrays if you feel ambitious
>> (but as a follow-on patch).
>
> Are you saying the return value should be the value of the repeated
> byte?
Yep, that makes it easier to compare for identity on the caller side.
Thanks David,
-Chris
More information about the llvm-commits
mailing list