[PATCH] D14500: [MIPS] add overrides for isCheapToSpeculateCttz() and isCheapToSpeculateCtlz()
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 11 09:11:10 PST 2015
dsanders added a comment.
LGTM, thanks.
> 2. Specified triple as "mips-linux-gnu"; note: I don't think we can just specify an arch here because that won't initialize the target machine for 'opt'.
It will but the way it does it is a bit weird in my opinion. It takes the default target triple and swaps the first component for the value of -march as long as llvm::Triple recognizes it. This can potentially lead to some odd triples like mips-pc-windows-msvc but they work in many parts of LLVM.
http://reviews.llvm.org/D14500
More information about the llvm-commits
mailing list