Now RISC-V the value provided to -march can determine whether to compile for 32- or 64-bit RISC-V irrespective of the target provided to the Clang driver. FIt was introduced at https://reviews.llvm.org/D54214 before.
So this patch tries to go further, based on D54214 that -march can be deduced in more generic way without providing -march but -mcpu or -mabi.