[all-commits] [llvm/llvm-project] 8efaf7: [ConstantFold] Remove redundant zero index gep fol...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Nov 3 06:35:52 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8efaf7a518fa3cf719cdeff3917b9fedf8f2cf19
https://github.com/llvm/llvm-project/commit/8efaf7a518fa3cf719cdeff3917b9fedf8f2cf19
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-11-03 (Fri, 03 Nov 2023)
Changed paths:
M llvm/lib/IR/ConstantFold.cpp
Log Message:
-----------
[ConstantFold] Remove redundant zero index gep fold (NFCI)
We already handle the more general case of zero index GEPs above,
so we don't need to also handle GEPs with null based and zero
indices. (Strictly speaking, this code could handle the special
case of an inrange gep with null base and zero indices, but that
has no practical relevance.)
More information about the All-commits
mailing list