File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,6 @@ Target Independent Opportunities:
2
2
3
3
//===---------------------------------------------------------------------===//
4
4
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
-
19
5
Get the C front-end to expand hypot(x,y) -> llvm.sqrt(x*x+y*y) when errno and
20
6
precision don't matter (ffastmath). Misc/mandel will like this. :) This isn't
21
7
safe in general, even on darwin. See the libm implementation of hypot for
You can’t perform that action at this time.
0 commit comments