[PATCH] D58881: [Transform] Improve fold of sadd.with.overflow

Dan Robertson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 2 18:20:25 PST 2019


dlrobertson created this revision.
dlrobertson added a reviewer: nikic.
Herald added subscribers: llvm-commits, jdoerfert, hiraditya.
Herald added a project: LLVM.

Fold `add nsw` + `sadd.with.overflow` with constants in some cases.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=38146


Repository:
  rL LLVM

https://reviews.llvm.org/D58881

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
  llvm/lib/Transforms/InstCombine/InstCombineInternal.h
  llvm/test/Transforms/InstCombine/call-add-with-overflow.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58881.189067.patch
Type: text/x-patch
Size: 4849 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190303/7b57c3ea/attachment.bin>


More information about the llvm-commits mailing list