[all-commits] [llvm/llvm-project] 42732d: [InstCombine] Fix constant-folding of overflowing ...
LemonBoy via All-commits
all-commits at lists.llvm.org
Mon Nov 9 03:50:34 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 42732d33cc7f11f585517cc86205da8bcc38fa4e
https://github.com/llvm/llvm-project/commit/42732d33cc7f11f585517cc86205da8bcc38fa4e
Author: LemonBoy <thatlemon at gmail.com>
Date: 2020-11-09 (Mon, 09 Nov 2020)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
M llvm/test/Transforms/InstCombine/with_overflow.ll
Log Message:
-----------
[InstCombine] Fix constant-folding of overflowing arithmetic ops on vectors
Feeding vector values to `InstCombiner::OptimizeOverflowCheck` produces a scalar boolean flag if it proves the overflow check can be eliminated.
This causes `InstCombiner::CreateOverflowTuple` to crash as it correctly expects a vector of i1 values instead.
Reviewed By: lebedev.ri
Differential Revision: https://reviews.llvm.org/D89628
More information about the All-commits
mailing list