[PATCH] Make InstCombine aware of TargetTransformInfo when optimize extension

Xuetian Weng xweng at google.com
Thu Jun 25 15:10:22 PDT 2015


Hi dberlin, chandlerc,

In NVPTX64, 64-bit register is simulated by two 32-bit register which
makes it more expensive on 64-bit operations.

In this patch we compute the extra cost of extending the expression
tree for zext and sext by exploiting TargetTransformInfo and make sure
the transform will not bring more costs.

http://reviews.llvm.org/D10750

Files:
  lib/Transforms/InstCombine/InstCombineCasts.cpp
  lib/Transforms/InstCombine/InstCombineInternal.h
  lib/Transforms/InstCombine/InstructionCombining.cpp
  test/Transforms/InstCombine/NVPTX/lit.local.cfg
  test/Transforms/InstCombine/NVPTX/no-widen-expensive.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10750.28507.patch
Type: text/x-patch
Size: 20142 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150625/d1dba086/attachment.bin>


More information about the llvm-commits mailing list