goldsteinn wrote: > I guess I didn't pay enough attention to notice this is specific to the bit extract code that generates bzhi or bextr. That should really be spelled out in the description. The title makes it sound like a generic optimization +1 https://github.com/llvm/llvm-project/pull/86921