[all-commits] [llvm/llvm-project] fa5884: [GVN] Always require LoopInfo
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed Oct 11 02:32:53 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fa5884770ab240139f33a8b2be801673ca21b9c0
https://github.com/llvm/llvm-project/commit/fa5884770ab240139f33a8b2be801673ca21b9c0
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-10-11 (Wed, 11 Oct 2023)
Changed paths:
M llvm/include/llvm/Transforms/Scalar/GVN.h
M llvm/lib/Transforms/Scalar/GVN.cpp
Log Message:
-----------
[GVN] Always require LoopInfo
GVN behavior depends on LoopInfo in multiple ways, most notably
as a dependency for loop load PRE. As this is not a preserved-only
analysis, using a cached analysis is inappropriate.
In the actual optimization pipeline LoopInfo is always available
at the point GVN runs, but this will ensure it stays this way
even if the pipeline changes.
More information about the All-commits
mailing list