diff options
author | Craig Topper <craig.topper@intel.com> | 2020-08-01 10:01:58 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2020-08-01 13:25:00 -0700 |
commit | 85b5315dbe9d52766ab326e702d638fcf58579b5 (patch) | |
tree | 6ce4ce0172fdd11d0b7ae1d3048ba9db191e2c36 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 4a19e6156ed5b6e87d708e6de29b675be69c574f (diff) | |
download | llvm-85b5315dbe9d52766ab326e702d638fcf58579b5.zip llvm-85b5315dbe9d52766ab326e702d638fcf58579b5.tar.gz llvm-85b5315dbe9d52766ab326e702d638fcf58579b5.tar.bz2 |
[InstSimplify] Fold abs(abs(x)) -> abs(x)
It's always safe to pick the earlier abs regardless of the nsw flag. We'll just lose it if it is on the outer abs but not the inner abs.
Differential Revision: https://reviews.llvm.org/D85053
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions