[PATCH] Avoid FP conversions when calling bitcasted / alias functions

Matt Arsenault Matthew.Arsenault at amd.com
Fri Jul 26 16:54:18 PDT 2013


  Rewrite to use new cast helper functions. These will try to use a bitcast if the sizes are equal, and use trunc/zext/sext/prttoint/inttoptr if they are not. It will not use the floating point casts.

Hi baldrick,

http://llvm-reviews.chandlerc.com/D1058

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D1058?vs=2601&id=3044#toc

Files:
  include/llvm/IR/InstrTypes.h
  lib/IR/Instructions.cpp
  lib/Transforms/InstCombine/InstCombineCalls.cpp
  test/Transforms/InstCombine/bitcast-alias-function.ll
  unittests/IR/InstructionsTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1058.2.patch
Type: text/x-patch
Size: 58066 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130726/c36517dd/attachment.bin>


More information about the llvm-commits mailing list