[all-commits] [llvm/llvm-project] 07a6d0: [InstCombine] add tests for srem+abs; NFC
RotateRight via All-commits
all-commits at lists.llvm.org
Wed Mar 31 08:50:42 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 07a6d07c482706268caa9c4f9e3a13d71f9c7fb9
https://github.com/llvm/llvm-project/commit/07a6d07c482706268caa9c4f9e3a13d71f9c7fb9
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2021-03-31 (Wed, 31 Mar 2021)
Changed paths:
M llvm/test/Transforms/InstCombine/abs-intrinsic.ll
Log Message:
-----------
[InstCombine] add tests for srem+abs; NFC
Commit: 1462bdf1b985256fb52ddccdbbe8fbf5a9ad48b5
https://github.com/llvm/llvm-project/commit/1462bdf1b985256fb52ddccdbbe8fbf5a9ad48b5
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2021-03-31 (Wed, 31 Mar 2021)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
M llvm/test/Transforms/InstCombine/abs-intrinsic.ll
Log Message:
-----------
[InstCombine] fold abs(srem X, 2)
This is a missing optimization based on an example in:
https://llvm.org/PR49763
As noted there and the test here, we could add a more
general fold if that is shown useful.
https://alive2.llvm.org/ce/z/xEHdTv
https://alive2.llvm.org/ce/z/97dcY5
Compare: https://github.com/llvm/llvm-project/compare/4e52daa25404...1462bdf1b985
More information about the All-commits
mailing list