aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunctionSplitter.cpp
diff options
context:
space:
mode:
authorBjörn Pettersson <bjorn.a.pettersson@ericsson.com>2024-04-23 14:11:34 +0200
committerGitHub <noreply@github.com>2024-04-23 14:11:34 +0200
commitf9b419b7a038dcd51a7943b160acc867714c595f (patch)
treec6fe1d861024d731ae62f5bd342485ccc95b950c /llvm/lib/CodeGen/MachineFunctionSplitter.cpp
parent5fd9bbdea6cc248469d5465de44e747378ffafcb (diff)
downloadllvm-f9b419b7a038dcd51a7943b160acc867714c595f.zip
llvm-f9b419b7a038dcd51a7943b160acc867714c595f.tar.gz
llvm-f9b419b7a038dcd51a7943b160acc867714c595f.tar.bz2
[DAGCombiner] Fix miscompile bug in combineShiftOfShiftedLogic (#89616)
Ensure that the sum of the shift amounts does not overflow the shift amount type when combining shifts in combineShiftOfShiftedLogic. Solves a miscompile bug found when testing the C23 BitInt feature. Targets like X86 that only use an i8 for shift amounts after legalization seems to be extra susceptible for bugs like this as it isn't legal to shift more than 255 steps.
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionSplitter.cpp')
0 files changed, 0 insertions, 0 deletions