[all-commits] [llvm/llvm-project] 3fedaf: [GVN] Don't explicitly materialize undefs from dea...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Sat Mar 6 14:47:20 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3fedaf2a522b5ca8db209a3864bf55978c407b29
https://github.com/llvm/llvm-project/commit/3fedaf2a522b5ca8db209a3864bf55978c407b29
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2021-03-06 (Sat, 06 Mar 2021)
Changed paths:
M llvm/lib/Transforms/Scalar/GVN.cpp
M llvm/test/Transforms/GVN/load-dead-block.ll
Log Message:
-----------
[GVN] Don't explicitly materialize undefs from dead blocks
When materializing an available load value, do not explicitly
materialize the undef values from dead blocks. Doing so will
will force creation of a phi with an undef operand, even if there
is a dominating definition. The phi will be folded away on
subsequent GVN iterations, but by then we may have already
poisoned MDA cache slots.
Simply don't register these values in the first place, and let
SSAUpdater do its thing.
More information about the All-commits
mailing list