[llvm-dev] Mips unconditionally uses fast-isel?

Robinson, Paul via llvm-dev llvm-dev at lists.llvm.org
Tue Nov 17 14:57:49 PST 2015


> > The other thing that might work, is having TargetMachine remember how
> > the fast-isel option got set, and make OptLevelChanger do the right
> > thing. But that seems like a hack to work around Mips not obeying the
> > specified optimization level, honestly.
> 
> I think we should do that as well. I don't think it's right that optnone
> enables Fast ISel even when it's been explicitly disabled. It should do
> the same checks as addPassesToGenerateCode() does.

Hm?  What you're asking for is that "-O2" and "-O2 -fast-isel=none" are
identical, unless you have an 'optnone' function. Do you really have a
use-case for controlling the codegen path for an 'optnone' function?
The whole point of 'optnone' is to avoid optimizations.
--paulr
 


More information about the llvm-dev mailing list