[PATCH] D128586: [SCEV] Use SCEVUnknown(poison) instead of SCEVUnknown(undef).

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 25 08:43:02 PDT 2022


fhahn created this revision.
fhahn added reviewers: nlopes, reames, nikic.
Herald added subscribers: javed.absar, hiraditya.
Herald added a project: All.
fhahn requested review of this revision.
Herald added a project: LLVM.

Use poison instead of undef for SCEVUnkown of unreachable values.
This should be in line with the movement to replace undef with poison
when possible.

Suggested in D114650 <https://reviews.llvm.org/D114650>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128586

Files:
  llvm/include/llvm/Analysis/ScalarEvolution.h
  llvm/lib/Analysis/ScalarEvolution.cpp
  llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
  llvm/test/Analysis/ScalarEvolution/shift-recurrences.ll
  llvm/test/Analysis/ScalarEvolution/unreachable-code.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128586.439992.patch
Type: text/x-patch
Size: 5417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220625/0ce97523/attachment.bin>


More information about the llvm-commits mailing list