[all-commits] [llvm/llvm-project] d422f7: [InstSimplify] add tests for select with common 'a...
Sanjay Patel via All-commits
all-commits at lists.llvm.org
Wed Nov 30 12:46:15 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d422f7e4945cf7c0c200cdde4e3736c67f8dd2fe
https://github.com/llvm/llvm-project/commit/d422f7e4945cf7c0c200cdde4e3736c67f8dd2fe
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2022-11-30 (Wed, 30 Nov 2022)
Changed paths:
M llvm/test/Transforms/InstSimplify/select-logical.ll
Log Message:
-----------
[InstSimplify] add tests for select with common 'and' ops; NFC
Commit: 47f5da47f527876d1c00a7c1d1deae9a1be07ef7
https://github.com/llvm/llvm-project/commit/47f5da47f527876d1c00a7c1d1deae9a1be07ef7
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2022-11-30 (Wed, 30 Nov 2022)
Changed paths:
M llvm/lib/Analysis/InstructionSimplify.cpp
M llvm/test/Transforms/InstSimplify/select-logical.ll
Log Message:
-----------
[InstSimplify] (X && Y) ? X : Y --> Y
Similar to the recent fold that was added for 'or' in D138815:
https://alive2.llvm.org/ce/z/PBapTJ
Compare: https://github.com/llvm/llvm-project/compare/a602f76a2406...47f5da47f527
More information about the All-commits
mailing list