[llvm-commits] [llvm] r116665 - in /llvm/trunk: include/llvm/CodeGen/MachineModuleInfo.h lib/CodeGen/MachineModuleInfo.cpp lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp lib/Target/X86/X86AsmPrinter.cpp test/CodeGen/X86/fltused.ll

Anton Korobeynikov anton at korobeynikov.info
Sat Oct 16 01:42:57 PDT 2010


Hi Michael,

> +      MachineModuleInfo &MMI = DAG.getMachineFunction().getMMI();
> +      for (unsigned i = 0, e = I.getNumArgOperands(); i != e &&
> +                  !MMI.callsExternalFunctionWithFloatingPointArguments(); ++i) {
Why do you need to check stuff on every iteration?

> +        const Type* T = I.getArgOperand(i)->getType();
> +        for (po_iterator<const Type*> i = po_begin(T),
> +                                      e = po_end(T);
> +                                      i != e; ++i) {
Definitely can be fit into single line :)

> +  if (Subtarget->isTargetWindows()
> +   && !Subtarget->isTargetCygMing()
> +   && MMI->callsExternalFunctionWithFloatingPointArguments()) {
LLVM code tends to put && into prev. line in multi-line conditions

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the llvm-commits mailing list