qiongsiwu wrote: As a note, I think adding a lit test directly here just to test this logic error is difficult, and this fix is rather urgent, so I think not breaking any existing tests is sufficient. https://github.com/llvm/llvm-project/pull/177062