[NFC][InstructionSimplify] Add a warning about not simplifying to not def-reachable
authorRoman Lebedev <lebedev.ri@gmail.com>
Sat, 29 Aug 2020 06:57:04 +0000 (09:57 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sat, 29 Aug 2020 06:58:08 +0000 (09:58 +0300)
commitc1b3e32118adff13bf846e0aa8b0b3b4ec04a120
tree2a2ea5ede4f920a4cd2667c3fea7a58434380d89
parent08669fbb439d139e2a66d2ae120a4b5be4fb4f28
[NFC][InstructionSimplify] Add a warning about not simplifying to not def-reachable

See
https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20200824/824235.html
and
https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20200824/824967.html

InstSimply is not allowed to perform simplifications to instructions
that are not def-reachable from the original instruction.
llvm/include/llvm/Analysis/InstructionSimplify.h
llvm/lib/Analysis/InstructionSimplify.cpp