llvm-project
4ac43b54 - [LV] Restrict widest induction type to be IntegerType (NFC) (#128173)

Commit
294 days ago
[LV] Restrict widest induction type to be IntegerType (NFC) (#128173) As the name of the function suggests, convertPointerToIntegerType should return an IntegerType instead of a Type, and should only ever be called with integer or ptr type. Fix the callers getWiderType, and addInductionPhi to narrow the type of WidestIndTy to IntegerType, stripping unclear casts. While at it, rename convertPointerToIntegerType and getWiderType for clarity.
Author
Parents
Loading