davemgreen wrote: It looks like this function is only used in one place and that use only applies to Thumb instructions (not Arm). Do you have a motivating reason to add this? (And by extension, add a test for it). https://github.com/llvm/llvm-project/pull/145095