You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This optimized code can result in UB on the final branch to basic block p2_different_liveout.SM.exit. Here is Alive2 output that provides example input which triggers this error: https://alive2.llvm.org/ce/z/GcsFEn
The text was updated successfully, but these errors were encountered:
The transformation becomes correct If adds noundef attribute to %a in the original IR. So it seems like the bug is caused by we don't check isGuaranteedNotToBeUndefOrPoison at some point. I am interested to solve this. And also welcome other people's solutions.
The following IR is miscompiled by the LoopIdiomRecognize pass:
When optimized with
-passes="loop-idiom"
, the output IR is:This optimized code can result in UB on the final branch to basic block
p2_different_liveout.SM.exit
. Here is Alive2 output that provides example input which triggers this error: https://alive2.llvm.org/ce/z/GcsFEnThe text was updated successfully, but these errors were encountered: