Commit 19860ce
authored
[Win][X86]Fix issue where _fltused reference is incorrectly issued for vector floating point operations (llvm#146792)
Fixes llvm#146428 _fltused reference generated for vector floating point
operations
Currently references to _fltused are incorrectly emitted due to the
presence of vector floating point operations. This causes spurious
references to _fltused in vector floating point system code where the
CRT is not used. This issue is limited to the X86 MSVC environment.
As described in the bug:
* _fltused should only be emitted for floating point operations as the
reference is used to initialize some parts of FP CRT support.
* Vector floating point operations on their own don't require that CRT
support.
Have confirmed intended behavior with MSVC team.
Fix alters usesMSVCFloatingPoint() to look for floating point
instructions/operands rather than floating point or vector floating
point.1 parent 71ffa2a commit 19860ce
File tree
2 files changed
+31
-2
lines changed- llvm
- lib/Target/X86
- test/CodeGen/X86
2 files changed
+31
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1002 | 1002 | | |
1003 | 1003 | | |
1004 | 1004 | | |
1005 | | - | |
| 1005 | + | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | 1008 | | |
1009 | | - | |
| 1009 | + | |
1010 | 1010 | | |
1011 | 1011 | | |
1012 | 1012 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments