[PATCH] Stop resetting DisableTailCalls in TargetMachine::resetTargetOptions

Akira Hatanaka ahatanak at gmail.com
Thu May 28 12:11:12 PDT 2015


Hi echristo, dexonsmith,

This patch makes changes in TargetMachine::resetTargetOptions to stop setting DisableTallCalls based on function attribute "disable-tail-calls". DisableTailCalls is the last non-fast-math option that is set in resetTargetOptions, so we should be able to remove this function entirely after the work to propagate IR-level fast-math flags to DAG nodes is completed.

Also, this patch enables cl:opt option "disable-tail-calls" to override function attribute "disable-tail-calls".

http://reviews.llvm.org/D10099

Files:
  include/llvm/CodeGen/CommandFlags.h
  include/llvm/Target/TargetOptions.h
  lib/Target/ARM/ARMISelLowering.cpp
  lib/Target/Hexagon/HexagonISelLowering.cpp
  lib/Target/TargetMachine.cpp
  lib/Target/X86/X86ISelLowering.cpp
  lib/Transforms/IPO/PassManagerBuilder.cpp
  lib/Transforms/Scalar/TailRecursionElimination.cpp
  test/CodeGen/ARM/disable-tail-calls.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10099.26720.patch
Type: text/x-patch
Size: 8497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150528/677d07cb/attachment.bin>


More information about the llvm-commits mailing list