diff options
author | Sanjay Patel <spatel@rotateright.com> | 2021-11-09 12:31:15 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2021-11-09 12:46:03 -0500 |
commit | 2a88d00cf250534f31c706bc832f0f6386c28ef3 (patch) | |
tree | 3d03117cdd1ca3965a10eeda27523cf26bb1385a /llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp | |
parent | de12ca31d477d4a5f6c5d84504eb99f54e7dc2dc (diff) | |
download | llvm-2a88d00cf250534f31c706bc832f0f6386c28ef3.zip llvm-2a88d00cf250534f31c706bc832f0f6386c28ef3.tar.gz llvm-2a88d00cf250534f31c706bc832f0f6386c28ef3.tar.bz2 |
[InstCombine] fold sub-of-umax to 0-usubsat
Op0 - umax(X, Op0) --> 0 - usub.sat(X, Op1)
I'm not sure if this is really an improvement in IR because
we probably have better recognition/analysis for min/max,
but this lines up with the fold we do for the icmp+select
idiom and removes another diff from D98152.
This is similar to the previous fold in the code that was
added with:
83c2fb9f66be
baa6a851308d
https://alive2.llvm.org/ce/z/5MrVB9
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp')
0 files changed, 0 insertions, 0 deletions