[llvm] [InstCombine] Fold icmp(constants[x]) when the range of x is given (PR #67093)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 22 04:02:25 PST 2023
================
@@ -4626,6 +4626,8 @@ static bool combineInstructionsOverFunction(
InstCombinerImpl IC(Worklist, Builder, F.hasMinSize(), AA, AC, TLI, TTI, DT,
ORE, BFI, PSI, DL, LI);
IC.MaxArraySizeForCombine = MaxArraySize;
+ IC.MaxDataSizeForCombine = MaxArraySize * 8;
----------------
nikic wrote:
I don't think we need this as an explicit member. Compute it in line at the single use.
https://github.com/llvm/llvm-project/pull/67093
More information about the llvm-commits
mailing list