[PATCH] D110867: X86InstrInfo: Support immediates that are +1/-1 different in optimizeCompareInstr

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 14 13:36:00 PDT 2021


MatzeB updated this revision to Diff 379823.
MatzeB added a comment.

rebase; use APInt to compute maximum/minimum constants.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110867/new/

https://reviews.llvm.org/D110867

Files:
  llvm/lib/Target/X86/X86InstrInfo.cpp
  llvm/lib/Target/X86/X86InstrInfo.h
  llvm/test/CodeGen/X86/optimize-compare.mir
  llvm/test/CodeGen/X86/peep-test-5.ll
  llvm/test/CodeGen/X86/use-cr-result-of-dom-icmp-st.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110867.379823.patch
Type: text/x-patch
Size: 17959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211014/69e40c55/attachment.bin>


More information about the llvm-commits mailing list