[PATCH] D49266: [X86][AArch64][DAGCombine] Unfold 'check for [no] signed truncation' pattern

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 13 00:55:52 PDT 2018


lebedev.ri updated this revision to Diff 155327.
lebedev.ri added a comment.

Address both test regressions with one fix - new `TargetLowering` hook.
FIXME: is there something preexising that i could use? I did look, and didn't find any..


Repository:
  rL LLVM

https://reviews.llvm.org/D49266

Files:
  include/llvm/CodeGen/TargetLowering.h
  lib/CodeGen/SelectionDAG/TargetLowering.cpp
  lib/Target/AArch64/AArch64ISelLowering.h
  lib/Target/X86/X86ISelLowering.cpp
  lib/Target/X86/X86ISelLowering.h
  test/CodeGen/AArch64/lack-of-signed-truncation-check.ll
  test/CodeGen/AArch64/signed-truncation-check.ll
  test/CodeGen/X86/lack-of-signed-truncation-check.ll
  test/CodeGen/X86/signed-truncation-check.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49266.155327.patch
Type: text/x-patch
Size: 24323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180713/2ce44261/attachment.bin>


More information about the llvm-commits mailing list