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

Matt Arsenault Matthew.Arsenault at amd.com
Thu Jun 27 20:44:23 PDT 2013


Hi baldrick,

This patch is to address the problem I asked about here:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-May/062557.html

This tries to use bitcast on the function arguments / return value when the bit sizes match, rather than whatever CastInst::getCastOpcode decides to use. This is to avoid doing floating point conversions when casting to a function expecting an integer.

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

Files:
  lib/Transforms/InstCombine/InstCombineCalls.cpp
  test/Transforms/InstCombine/bitcast-alias-function.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1058.1.patch
Type: text/x-patch
Size: 9754 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130627/c88a7c04/attachment.bin>


More information about the llvm-commits mailing list