[PATCH] D19801: [SelectionDAG] Don't treat library calls specially if marked with nobuiltin.

Jan Vesely via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 23 13:50:50 PDT 2016


jvesely added a subscriber: jvesely.
jvesely added a comment.

Hi,

this change breaks OpenCL using mesa (clover) with some library functonis implemneted using builtins:

  __attribute__((always_inline)) __attribute__((overloadable)) float copysign(float a, float b) {
      return __builtin_copysignf(a, b)
  }

results in kernel build failure:

  <unknown>:0:0: in function test_1_copysign_float void (float addrspace(1)*, float addrspace(1)*, float addrspace(1)*): unsupported call to function copysignf

Both for R600 (evergreen) and GCN (kaveri)


Repository:
  rL LLVM

http://reviews.llvm.org/D19801





More information about the llvm-commits mailing list