Commit adcbc20
Fix incorrect code movement in CMABI
replaceUsesWithinFunction incorrectly moved code trying to fix phi
issues that never arised. Remove fixing code as it really looks like
it should not be here at all:
1) breakConstantExprs is called before and it removes all
constantExprs from module;
2) only uses that are instructions are analyzed so it is impossible to
change global inside constexpr to alloca.
The only possible way to break things is to add another SCC pass
immediately before CMABI that will restore constexpr as CMABI breaks
them in doInitialization. Though, this should be fixed with redesign
of CMABI and doing all the work in "run" function.
Change-Id: I24ac5e3c8977977ac782e9a6c01ee238948b3d5d1 parent 1c76396 commit adcbc20
1 file changed
+2
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | 485 | | |
499 | 486 | | |
500 | | - | |
501 | | - | |
502 | | - | |
| 487 | + | |
503 | 488 | | |
504 | 489 | | |
505 | | - | |
506 | 490 | | |
507 | 491 | | |
508 | 492 | | |
509 | 493 | | |
510 | 494 | | |
511 | 495 | | |
512 | 496 | | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | 497 | | |
520 | | - | |
521 | 498 | | |
522 | 499 | | |
523 | 500 | | |
| |||
544 | 521 | | |
545 | 522 | | |
546 | 523 | | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
| 524 | + | |
552 | 525 | | |
553 | 526 | | |
554 | 527 | | |
| |||
0 commit comments