[llvm-dev] what can cause a "CPU table is not sorted" assertion

Rail Shafigulin via llvm-dev llvm-dev at lists.llvm.org
Fri Oct 16 09:55:23 PDT 2015


On Fri, Oct 16, 2015 at 5:38 AM, Meador Inge <meadori at gmail.com> wrote:

> On Thu, Oct 15, 2015 at 8:35 PM, Tim Northover via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>
> >> def : ProcessorModel<"generic", MyTargetModel, [FeatureDiv,
> FeatureMul]>;
> >> def : ProcessorModel<"or1200",  MyTargetModel, [FeatureDiv,
> FeatureMul]>;
> >
> > Ah! I see the check is actually looking for a strict ordering. Could
> > there be 2 CPUs defined with the same name?
>
> That is the conclusion I came to as well.  I suspect that both
> "ProcessorModel"
> and "Proc" commands are in the .td file.  Something like:
>
>   def : Proc<"generic", [FeatureMul, FeatureDiv]>;
>   def : Proc<"or1201",  [FeatureMul, FeatureDiv]>;
>   def : ProcessorModel<"generic", MyTargetModel, [FeatureDiv, FeatureMul]>;
>   def : ProcessorModel<"or1200",  MyTargetModel, [FeatureDiv, FeatureMul]>;
>
> where really only the ProcessorModel ones should be used after adding the
> scheduling model.
>
> -- Meador
>

Once I got home, I realized that as well.

Thanks for the help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151016/8d94bcf7/attachment.html>


More information about the llvm-dev mailing list