[all-commits] [llvm/llvm-project] 153da0: [InstCombine] hoist min/max intrinsics above selec...
RotateRight via All-commits
all-commits at lists.llvm.org
Sun Jun 27 07:09:12 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 153da08a6cd7feea6644b3191019573d70a5bbd3
https://github.com/llvm/llvm-project/commit/153da08a6cd7feea6644b3191019573d70a5bbd3
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2021-06-27 (Sun, 27 Jun 2021)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
M llvm/test/Transforms/InstCombine/select-min-max.ll
Log Message:
-----------
[InstCombine] hoist min/max intrinsics above select with constant op
This is an extension of the handling for unary intrinsics and
follows the logic that we use for binary ops.
We don't canonicalize to min/max intrinsics yet, but this might
help unlock other folds seen in D98152.
More information about the All-commits
mailing list