[PATCH] D72048: [InstCombine] Preserve nuw on sub of geps (PR44419)

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 1 03:08:28 PST 2020


nikic updated this revision to Diff 235750.
nikic added a comment.

Only add nuw if the gep is also inbounds.


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

https://reviews.llvm.org/D72048

Files:
  llvm/include/llvm/Analysis/Utils/Local.h
  llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
  llvm/lib/Transforms/InstCombine/InstCombineInternal.h
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/test/Transforms/InstCombine/sub-gep.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72048.235750.patch
Type: text/x-patch
Size: 6489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200101/3d0d9810/attachment-0001.bin>


More information about the llvm-commits mailing list