[llvm] [X86] Avoid shl->mul lowbit-isolate fold when BMI1/BMI2 are available (PR #217776)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 10:09:07 PDT 2026


zero318 wrote:

Using a BMI1/BMI2 check will still improperly apply this fold to bdver2, bdver3, and btver2 because they don't have BMI2 but would still prefer TZCNT. It might be better to check only BMI1 because Intel didn't make CPUs with only BMI1 like AMD.

https://github.com/llvm/llvm-project/pull/217776


More information about the llvm-commits mailing list