[PATCH] D45202: [X86] Replacing X86-specific floor and ceil vector intrinsics with generic LLVM intrinsics

Mikhail Dvoretckii via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 4 09:24:46 PDT 2018


mike.dvoretsky updated this revision to Diff 140972.
mike.dvoretsky edited the summary of this revision.
mike.dvoretsky added a comment.

On suggestion from @craig.topper moved all lowering to CGBuiltin.cpp with no new builtins added. Instead the existing builtins are lowered if their immediate values correspond to generic ceil and floor operations. https://reviews.llvm.org/D45203 is now required to enable transformations.


https://reviews.llvm.org/D45202

Files:
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/test/CodeGen/avx-builtins.c
  clang/test/CodeGen/avx512f-builtins.c
  clang/test/CodeGen/sse41-builtins.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45202.140972.patch
Type: text/x-patch
Size: 12536 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180404/c93e5352/attachment-0001.bin>


More information about the cfe-commits mailing list