This doesn't require callers to put the pointer operand and the indices
in a container like a vector when calling the function. This is not
really an issue with the existing callers. But when using it from
IRBuilder the inputs are available as separate pointer value and indices
ArrayRef.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Analysis/InstructionSimplify.cpp | ||
---|---|---|
4445–4449 | I gave that a try try the issue is that the iterator type of ArrayRef<Value *> is Value * const *. concat<Value*> has a helper that returns ValueTy * with ValueTy = Value *, which unfortunately breaks. Adjusting SimplifyGEPInst was easier in that case (not a great justification, I know), but the distinction between ptr & indices makes at least some sense I think. |
Meh. LGTM.
I've read through the diff, looks about right, but hopefully some test would break if there was something wrong :)
?