File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1417,11 +1417,6 @@ void initCompilerConfig() {
1417
1417
setLLVMOption (getLLVMOption () + " --enable-unsafe-fp-math" );
1418
1418
}
1419
1419
1420
- #if 0
1421
- if (march == "z17")
1422
- march = "arch15";
1423
- #endif
1424
-
1425
1420
if (march == " native" ) {
1426
1421
march = std::string (llvm::sys::getHostCPUName ());
1427
1422
if (VerboseOutput)
Original file line number Diff line number Diff line change @@ -48,8 +48,10 @@ namespace onnx_mlir {
48
48
else
49
49
// Default seems to be SSE
50
50
globalVectorMachineSupport = new SSE42x86VectorMachineSupport ();
51
- // Arm uses arch
52
- } else if (arch.compare (" aarch64" ) == 0 || arch.compare (" arm64" ) == 0 ) {
51
+ // Arm uses arch, and arch=native returns apple-mXXX.
52
+ } else if (arch.compare (" aarch64" ) == 0 || arch.compare (" arm64" ) == 0 ||
53
+ arch.compare (" apple-m1" ) == 0 || arch.compare (" apple-m2" ) == 0 ||
54
+ arch.compare (" apple-m3" ) == 0 || arch.compare (" apple-m4" ) == 0 ) {
53
55
// Arm arch
54
56
globalVectorMachineSupport = new NeonVectorMachineSupport ();
55
57
} else {
You can’t perform that action at this time.
0 commit comments