[llvm] r176130 - Add support for autodetection of ADM bdver2.
Bill Wendling
wendling at apple.com
Wed Feb 27 11:12:22 PST 2013
On Feb 26, 2013, at 2:41 PM, Roman Divacky <rdivacky at FreeBSD.org> wrote:
> Author: rdivacky
> Date: Tue Feb 26 16:41:01 2013
> New Revision: 176130
>
> URL: http://llvm.org/viewvc/llvm-project?rev=176130&view=rev
> Log:
> Add support for autodetection of ADM bdver2.
>
> Modified:
> llvm/trunk/lib/Support/Host.cpp
>
> Modified: llvm/trunk/lib/Support/Host.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=176130&r1=176129&r2=176130&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Support/Host.cpp (original)
> +++ llvm/trunk/lib/Support/Host.cpp Tue Feb 26 16:41:01 2013
> @@ -331,7 +331,10 @@ std::string sys::getHostCPUName() {
> case 20:
> return "btver1";
> case 21:
> - return "bdver1";
> + if (Model <= 15)
> + return "bdver1";
> + else if (Model <= 31)
> + return "bdver2";
This now falls through to the 'default' case. Is that intentional? If so, please place a comment saying so.
-bw
> default:
> return "generic";
> }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list