How to extract instruction embedded within an instruction in LLVM-IR

Sometimes, in LLVM-IR an instruction is ‘embedded’ inside of another instruction e.g:


Here, a gep instruction has been embedded inside of a load instruction. How can I access the operands of this gep instruction?
Thanks

LoadInst has a getPointerOperand() method. If you believe that the pointer is a gep then that should give you access to the gep.

I have tried using this approach:
image
The second dyn_cast always return Null…

Found the solution: Detecting GEPs embedded inside other instructions