[all-commits] [llvm/llvm-project] 93f3d7: [Reassociate] Guard `add`-like `or` conversion int...
Roman Lebedev via All-commits
all-commits at lists.llvm.org
Wed Nov 4 05:10:58 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 93f3d7f7b3a902ad9e90ef0d9bf147582a2cf620
https://github.com/llvm/llvm-project/commit/93f3d7f7b3a902ad9e90ef0d9bf147582a2cf620
Author: Roman Lebedev <lebedev.ri at gmail.com>
Date: 2020-11-04 (Wed, 04 Nov 2020)
Changed paths:
M llvm/lib/Transforms/Scalar/Reassociate.cpp
M llvm/test/Transforms/Reassociate/add-like-or.ll
Log Message:
-----------
[Reassociate] Guard `add`-like `or` conversion into an `add` with profitability check
This is slightly better compile-time wise,
since we avoid potentially-costly knownbits analysis that will
ultimately not allow us to actually do anything with said `add`.
More information about the All-commits
mailing list