diff options
author | Craig Topper <craig.topper@sifive.com> | 2023-08-18 11:56:58 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2023-08-18 11:59:18 -0700 |
commit | 0a5347f40d8a5298d8815076ce85bf5de58083b5 (patch) | |
tree | 6016aaf1dad2697460abd68d93c5f1408c7835bb /llvm/lib/CodeGen/BasicBlockSections.cpp | |
parent | 770be43f6782dab84d215d01b37396d63a9c2b6e (diff) | |
download | llvm-0a5347f40d8a5298d8815076ce85bf5de58083b5.zip llvm-0a5347f40d8a5298d8815076ce85bf5de58083b5.tar.gz llvm-0a5347f40d8a5298d8815076ce85bf5de58083b5.tar.bz2 |
[DAG] SimplifyDemandedBits - Use DemandedBits intead of OriginalDemandedBits to when simplifying UMIN/UMAX to AND/OR.
DemandedBits is forced to all ones if there are multiple users.
The changes X86 test cases looks like they were miscompiles before.
The value of eax/rax from the cmov is returned from the function in
addition to being used by the sar. That usage needs all bits even
though the sar doesn't.
Diffstat (limited to 'llvm/lib/CodeGen/BasicBlockSections.cpp')
0 files changed, 0 insertions, 0 deletions