[X86] Vectorize non-power-of-two integer division (#215076) - Keep non-power-of-two X86 integer division vectorized when constant extracts collectively demand every result lane. - Preserve the existing scalarization path for partial-lane and variable-index extracts to avoid scalarization regressions. Non-power-of-two vector returns are legalized as scalar extracts. The existing DAG combine treated any extract-only use set as partial demand, causing operations like <7 x i32> and <2 x i8> divisions to expand into scalar divide instructions. Tracking the extracted lane set distinguishes legalization/ABI extraction from genuinely partial demand, allowing widened vector lowering to proceed. Fixes #215061. ## AI assistance disclosure ChatGPT/Codex was used to assist with code investigation, implementation, test authoring, and test execution. The contributor has reviewed and understands the submitted change and remains fully accountable for it.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.