diff options
author | Craig Topper <craig.topper@sifive.com> | 2022-11-21 19:16:40 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2022-11-21 19:16:40 -0800 |
commit | a391b49ce8524ddb6283d6605544a354d187a9d4 (patch) | |
tree | 2196db7a56191a343edfa232ecd9c172d8faf752 /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | |
parent | 6ba4b62af8df00edb7e1cc0c473f6770fb1cfe3b (diff) | |
download | llvm-a391b49ce8524ddb6283d6605544a354d187a9d4.zip llvm-a391b49ce8524ddb6283d6605544a354d187a9d4.tar.gz llvm-a391b49ce8524ddb6283d6605544a354d187a9d4.tar.bz2 |
[RISCV] Prevent constant hoisting for (and (shl X, C), mask<<C)
If the immediate is a shifted mask, we will use a pair of shifts
and never materialize the immediate. Consider the immediate free.
Reviewed By: reames, luismarques
Differential Revision: https://reviews.llvm.org/D138260
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
0 files changed, 0 insertions, 0 deletions