Skip to content

Commit a847b0f

Browse files
authored
Remove already implemented target independent optimization opportunity (#101233)
Fixes #101127 See this working example: https://godbolt.org/z/z15oj15eP
1 parent 6a54dfb commit a847b0f

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

llvm/lib/Target/README.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,6 @@ Target Independent Opportunities:
22

33
//===---------------------------------------------------------------------===//
44

5-
We should recognized various "overflow detection" idioms and translate them into
6-
llvm.uadd.with.overflow and similar intrinsics. Here is a multiply idiom:
7-
8-
unsigned int mul(unsigned int a,unsigned int b) {
9-
if ((unsigned long long)a*b>0xffffffff)
10-
exit(0);
11-
return a*b;
12-
}
13-
14-
The legalization code for mul-with-overflow needs to be made more robust before
15-
this can be implemented though.
16-
17-
//===---------------------------------------------------------------------===//
18-
195
Get the C front-end to expand hypot(x,y) -> llvm.sqrt(x*x+y*y) when errno and
206
precision don't matter (ffastmath). Misc/mandel will like this. :) This isn't
217
safe in general, even on darwin. See the libm implementation of hypot for

0 commit comments

Comments
 (0)