[all-commits] [llvm/llvm-project] 253f80: [amdgpu] Update med3 combine to skip i64
Jon Chesterfield via All-commits
all-commits at lists.llvm.org
Thu Mar 18 08:57:12 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 253f804debb3424470b2ed27f3c812ead908d4ca
https://github.com/llvm/llvm-project/commit/253f804debb3424470b2ed27f3c812ead908d4ca
Author: Jon Chesterfield <jonathanchesterfield at gmail.com>
Date: 2021-03-18 (Thu, 18 Mar 2021)
Changed paths:
M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
M llvm/test/CodeGen/AMDGPU/smed3.ll
Log Message:
-----------
[amdgpu] Update med3 combine to skip i64
[amdgpu] Update med3 combine to skip i64
Fixes an assumption that a type which is not i32 will be i16. This asserts
when trying to sign/zero extend an i64 to i32.
Test case was cut down from an openmp application. Variations on it are hit by
other combines before reaching the problematic one, e.g. replacing the
immediate values with other function arguments changes the codegen path and
misses this combine.
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D98872
More information about the All-commits
mailing list