[llvm] [X86] Narrow BT/BTC/BTR/BTS compare + RMW patterns on very large integers (PR #165540)

Qinkun Bao via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 2 10:56:22 PST 2025


qinkunbao wrote:

> > > @durin42 Please do you have the test case yet? Are you sure this wasn't fixed by #165755 / #165850?
> > 
> > 
> > https://lab.llvm.org/buildbot/#/builders/66/builds/21507 should be reasonably easy to reproduce from build bot logs. However minimizing requires some effort. So I'd like to postpone that, with hope that you can guess what could go wrong just from your patch :)
> 
> I need to repro it before guessing as I don't want to recommit without seeing a local fix. But I can't seem to create compiler-rt sanitizer i386 unit tests - its been a while since I've had to work on sanitizers - I can see Sanitizer-x86_64-Test but not Sanitizer-i386-Test - any ideas?
> 
> > Maybe another easier than minimizing repro option is just to decompose #165540 into even smaller pieces? I am not sure how feasible it is.
> 
> Splitting this down causes codegen regressions which we really want to avoid - and I'm sort of expecting this to be causing a problem some place else tbh.

You may reproduce the error with the following command. Please see https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild for more details.

```
git clone https://github.com/llvm/llvm-zorg.git
git clone https://github.com/llvm/llvm-project.git && cd llvm-project
git checkout a55a7207c7e4d98dad32e8d53dd5964ee833edd9
cd ..
BUILDBOT_MONO_REPO_PATH=./llvm-project llvm-zorg/zorg/buildbot/builders/sanitizers/buildbot_cmake.sh
```

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


More information about the llvm-commits mailing list