[PATCH] D80120: [InstCombine] Sink pure instructions down to return and unreachable blocks
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 18 21:40:49 PDT 2020
mkazantsev marked an inline comment as done.
mkazantsev added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:3448
+ // with alias analysis.
+ if (!ShouldSink && !I->mayReadOrWriteMemory()) {
+ auto *Term = UserParent->getTerminator();
----------------
This can actually be reduced to `mayReadMemory`, but writes will be rejected in `TryToSinkInstruction` anyways.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80120/new/
https://reviews.llvm.org/D80120
More information about the llvm-commits
mailing list