[llvm] [CodeGen] Optimize switch on ucmp/scmp to branch sequence (PR #176582)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 19 08:15:57 PST 2026


================
@@ -9084,8 +9084,82 @@ bool CodeGenPrepare::makeBitReverse(Instruction &I) {
 // In this pass we look for GEP and cast instructions that are used
 // across basic blocks and rewrite them to improve basic-block-at-a-time
 // selection.
----------------
dtcxzyw wrote:

This header comment should be put before CodeGenPrepare::optimizeBlock.

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


More information about the llvm-commits mailing list