[all-commits] [llvm/llvm-project] 73a0b1: [CodeGenPrepare] don't promote sdiv/srem by -1 (#2...
ʟᴜɴᴇx via All-commits
all-commits at lists.llvm.org
Wed Sep 30 00:58:58 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 73a0b12b8ee34b9d2858cf6ca60a6154145a52ca
https://github.com/llvm/llvm-project/commit/73a0b12b8ee34b9d2858cf6ca60a6154145a52ca
Author: ʟᴜɴᴇx <thisissamir04 at gmail.com>
Date: 2026-09-30 (Wed, 30 Sep 2026)
Changed paths:
M llvm/lib/CodeGen/CodeGenPrepare.cpp
A llvm/test/Transforms/CodeGenPrepare/X86/store-extract-division-ub.ll
Log Message:
-----------
[CodeGenPrepare] don't promote sdiv/srem by -1 (#218737)
`store-extract` promotion was widening sdiv/srem to the vector type
without checking if thats safe or not... and INT_MIN lane / -1 is UB.
skip sdiv/srem by -1 in `shouldPromote`, rest still promotes fine.
Fixes #218570
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list