[PATCH] D75400: [LICM] Allow freeze to hoist out of a loop
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 29 02:04:19 PST 2020
lebedev.ri added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LICM.cpp:1235-1237
+ // Freeze instruction cannot be sunk into a loop because it may yield a
+ // different value for each iteration after sinking.
+ return !Flags->IsSink;
----------------
Should there be a standalone test for this?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75400/new/
https://reviews.llvm.org/D75400
More information about the llvm-commits
mailing list