[PATCH] D85385: [X86][FPEnv] Teach X86 mask compare intrinsics to respect strict FP semantics.

Pengfei Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 5 17:50:41 PDT 2020


pengfei created this revision.
pengfei added reviewers: craig.topper, RKSimon, andrew.w.kaylor, uweigand, kpn.
Herald added subscribers: llvm-commits, cfe-commits, hiraditya.
Herald added projects: clang, LLVM.
pengfei requested review of this revision.

When we use mask compare intrinsics under strict FP option, the masked
elements shouldn't raise any exception. So, we cann't replace the
intrinsic with a full compare + "and" operation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85385

Files:
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/test/CodeGen/avx512f-builtins-constrained-cmp.c
  clang/test/CodeGen/avx512vl-builtins-constrained-cmp.c
  llvm/include/llvm/IR/IntrinsicsX86.td
  llvm/lib/IR/AutoUpgrade.cpp
  llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/lib/Target/X86/X86ISelLowering.h
  llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
  llvm/lib/Target/X86/X86InstrAVX512.td
  llvm/lib/Target/X86/X86InstrFragmentsSIMD.td
  llvm/lib/Target/X86/X86IntrinsicsInfo.h
  llvm/test/CodeGen/X86/avx512-cmp-kor-sequence.ll
  llvm/test/CodeGen/X86/avx512-cmp-mask.ll
  llvm/test/CodeGen/X86/avx512-intrinsics-upgrade.ll
  llvm/test/CodeGen/X86/avx512-intrinsics.ll
  llvm/test/CodeGen/X86/avx512vl-intrinsics-upgrade.ll
  llvm/test/CodeGen/X86/avx512vl-intrinsics.ll
  llvm/test/CodeGen/X86/avx512vl-vec-masked-cmp.ll
  llvm/test/CodeGen/X86/stack-folding-fp-avx512.ll
  llvm/test/CodeGen/X86/stack-folding-fp-avx512vl.ll
  llvm/test/CodeGen/X86/vector-shuffle-v1.ll
  llvm/test/Transforms/InstCombine/X86/X86FsubCmpCombine.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85385.283458.patch
Type: text/x-patch
Size: 281863 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200806/eb5f5b3e/attachment-0001.bin>


More information about the cfe-commits mailing list