[all-commits] [llvm/llvm-project] 2b70b6: [GVN] Don't short-circuit load PRE
Nikita Popov via All-commits
all-commits at lists.llvm.org
Sun Aug 22 12:13:16 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2b70b68efbd25a46d2c13045b424e2e10ef2379c
https://github.com/llvm/llvm-project/commit/2b70b68efbd25a46d2c13045b424e2e10ef2379c
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2021-08-22 (Sun, 22 Aug 2021)
Changed paths:
M llvm/lib/Transforms/Scalar/GVN.cpp
Log Message:
-----------
[GVN] Don't short-circuit load PRE
4ad41902e8c7481ccf3cdf6e618dfcd1e1fc10fc changed this code to
propagate Changed if scalar GEP PRE is performed. However, as
implemented this would skip the load PRE entirely if GEP indices
were PREd. Make sure load PRE runs even if Changed is already
true.
This likely has no functional effect as load PRE would then
occur on a later GVN iteration.
More information about the All-commits
mailing list