[llvm-commits] [PATCH/RFC] Loop Data Software Prefetching

Arnold Schwaighofer aschwaighofer at apple.com
Thu Jan 31 07:05:23 PST 2013


On Jan 31, 2013, at 8:59 AM, Hal Finkel <hfinkel at anl.gov> wrote:

>> You might be right that this is a non-problem, but it seems fairly
>> cumbersome. For prefetching distance, unrolling threshold, etc. we
>> could move the default value into NOTTI, make the default value of
>> the command line parameter 0 (or -1 or something else invalid), and
>> then use the TTI value only if the command-line value is invalid.
>> But how will this work for boolean parameters? Maybe we could make
>> it possible to determine if a command-line parameter was actually
>> provided or if it has its default value.

There is Option::getNumOccurrences() which can be used to determine whether a parameter was provided.



More information about the llvm-commits mailing list