Commit 12f39e0
committed
[InstSimplify] fold copysign with negated operand
This is another transform suggested in PR44153:
https://bugs.llvm.org/show_bug.cgi?id=44153
The backend for some targets already manages to get
this if it converts copysign to bitwise logic.1 parent b324902 commit 12f39e0
File tree
2 files changed
+5
-6
lines changed- llvm
- lib/Analysis
- test/Transforms/InstSimplify
2 files changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5090 | 5090 | | |
5091 | 5091 | | |
5092 | 5092 | | |
| 5093 | + | |
| 5094 | + | |
| 5095 | + | |
5093 | 5096 | | |
5094 | 5097 | | |
5095 | 5098 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
964 | 964 | | |
965 | 965 | | |
966 | 966 | | |
967 | | - | |
968 | | - | |
969 | | - | |
| 967 | + | |
970 | 968 | | |
971 | 969 | | |
972 | 970 | | |
| |||
975 | 973 | | |
976 | 974 | | |
977 | 975 | | |
978 | | - | |
979 | | - | |
980 | | - | |
| 976 | + | |
981 | 977 | | |
982 | 978 | | |
983 | 979 | | |
| |||
0 commit comments