[all-commits] [llvm/llvm-project] 2a1b1f: [GVN] Store source element type for GEP expressions
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Feb 11 04:03:46 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2a1b1f1b1be86732ff345c6f6dbad7c64743a0d5
https://github.com/llvm/llvm-project/commit/2a1b1f1b1be86732ff345c6f6dbad7c64743a0d5
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-02-11 (Fri, 11 Feb 2022)
Changed paths:
M llvm/lib/Transforms/Scalar/GVN.cpp
A llvm/test/Transforms/GVN/opaque-ptr.ll
Log Message:
-----------
[GVN] Store source element type for GEP expressions
To avoid incorrectly merging GEPs with different source types
under opaque pointers.
To avoid increasing the Expression structure size, this reuses the
existing type member. The code does not rely on this to be the
expression result type, it's only used as a disambiguator.
More information about the All-commits
mailing list