Changes in directory llvm/lib/Transforms/Instrumentation:
ProfilingUtils.cpp updated: 1.11 -> 1.12 --- Log message: Remove isSigned calls via foreknowledge of main's argument types. --- Diffs of the changes: (+4 -7) ProfilingUtils.cpp | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) Index: llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp diff -u llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp:1.11 llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp:1.12 --- llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp:1.11 Mon Dec 18 02:47:13 2006 +++ llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp Thu Dec 21 01:49:49 2006 @@ -62,8 +62,8 @@ case 2: AI = MainFn->arg_begin(); ++AI; if (AI->getType() != ArgVTy) { - Instruction::CastOps opcode = CastInst::getCastOpcode(AI, - AI->getType()->isSigned(), ArgVTy, ArgVTy->isSigned()); + Instruction::CastOps opcode = CastInst::getCastOpcode(AI, false, ArgVTy, + false); InitCall->setOperand(2, CastInst::create(opcode, AI, ArgVTy, "argv.cast", InitCall)); } else { @@ -78,14 +78,11 @@ if (AI->getType() != Type::IntTy) { Instruction::CastOps opcode; if (!AI->use_empty()) { - opcode = CastInst::getCastOpcode(InitCall, - InitCall->getType()->isSigned(), AI->getType(), - AI->getType()->isSigned()); + opcode = CastInst::getCastOpcode(InitCall, true, AI->getType(), true); AI->replaceAllUsesWith( CastInst::create(opcode, InitCall, AI->getType(), "", InsertPos)); } - opcode = CastInst::getCastOpcode(AI, AI->getType()->isSigned(), - Type::IntTy, true); + opcode = CastInst::getCastOpcode(AI, true, Type::IntTy, true); InitCall->setOperand(1, CastInst::create(opcode, AI, Type::IntTy, "argc.cast", InitCall)); } else { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits