Commit 4225f54b authored by Zhongyunde's avatar Zhongyunde
Browse files

[InstCombine] Fold abs of known sign operand when source is sub

abs(x-y) --> x-y where x >= y, done on D122013
abs(x-y) --> y-x where x <= y

proofs: https://alive2.llvm.org/ce/z/KkeEsd

Reviewed By: goldstein.w.n, nikic
Differential Revision: https://reviews.llvm.org/D156499
parent b9a8bec0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment