[all-commits] [llvm/llvm-project] 945100: [InstCombine][TLI] Fix function prototype of `labs...
Yingwei Zheng via All-commits
all-commits at lists.llvm.org
Sun Oct 15 02:01:04 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9451004987e84c2bc2f109dd56ceab3844505a7f
https://github.com/llvm/llvm-project/commit/9451004987e84c2bc2f109dd56ceab3844505a7f
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2023-10-15 (Sun, 15 Oct 2023)
Changed paths:
M llvm/include/llvm/Analysis/TargetLibraryInfo.def
A llvm/test/Transforms/InstCombine/pr69059.ll
M llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
Log Message:
-----------
[InstCombine][TLI] Fix function prototype of `labs` (#69077)
`i64 @labs(i32)` is incorrectly recognized as `LibFunc_labs` because
type ID `Long` matches both `i32` and `i64`. This PR requires the type
of argument to match the return value.
Fixes #69059.
More information about the All-commits
mailing list