llvm-project
aea82a78 - [VPlan] Remove some getCanonicalIV() uses. NFC (#152969)

Commit
89 days ago
[VPlan] Remove some getCanonicalIV() uses. NFC (#152969) A lot of time getCanonicalIV() is used to get the canonical IV type, e.g. to instantiate a VPTypeAnalysis or to get the LLVMContext. However VPTypeAnalysis has a constructor that takes the VPlan directly and there's a method on VPlan to get the LLVMContext directly, so use those instead where possible. This lets us remove a constructor on VPTypeAnalysis. Also remove an unused LLVMContext argument in UnrollState whilst we're here.
Author
Parents
Loading