1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/lib/Transforms
Serguei Katkov b6e03dbb87 [GVN PRE] Patch the source for Phi node in PRE
We must patch all existing incoming values of Phi node,
otherwise it is possible that we can see poison
where program does not expect to see it.

This is the similar what GVN does.

The added test test/Transforms/GVN/PRE/pre-jt-add.ll shows an
example of wrong optimization done by jump threading due to
GVN PRE did not patch existing incoming value.

Reviewers: mkazantsev, wmi, dberlin, davide
Reviewed By: dberlin
Subscribers: efriedma, llvm-commits
Differential Revision: https://reviews.llvm.org/D39637

llvm-svn: 317768
2017-11-09 06:02:18 +00:00
..
Coroutines [coro] Make Spill a proper struct instead of deriving from pair. 2017-10-31 19:22:55 +00:00
Hello
InstCombine Recommit r317510 "[InstCombine] Pull shifts through a select plus binop with constant" 2017-11-07 18:47:24 +00:00
Instrumentation Irreducible loop metadata for more accurate block frequency under PGO. 2017-11-02 22:26:51 +00:00
IPO [ThinLTO] Ensure sanitizer passes are run 2017-11-08 19:45:52 +00:00
ObjCARC [Transforms] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-10-27 01:09:08 +00:00
Scalar [GVN PRE] Patch the source for Phi node in PRE 2017-11-09 06:02:18 +00:00
Utils Add an @llvm.sideeffect intrinsic 2017-11-08 21:59:51 +00:00
Vectorize Add an @llvm.sideeffect intrinsic 2017-11-08 21:59:51 +00:00
CMakeLists.txt
LLVMBuild.txt