This is an archive of the discontinued LLVM Phabricator instance.

[Clang][OpenMP]Solved the the always truth condition in Arm64
ClosedPublic

Authored by samuelmaina on Mar 18 2023, 6:50 PM.

Details

Summary

There was a bug in the getAArch64MTV function on the third if statement which returns truth as reported by this issue [[ https://github.com/llvm/llvm-project/issues/61319 |[Clang] Condition is always true which is caused by a possible copy-pasted bug in CGOpenMPRuntime.cpp
]].
All the testcases are passing. The first unit tests I could find are for functions that are 6 levels from this issue. The function is very low level and couldn't find a way to affect it from the higher functions.

Diff Detail

Event Timeline

samuelmaina created this revision.Mar 18 2023, 6:50 PM
samuelmaina requested review of this revision.Mar 18 2023, 6:50 PM
Herald added a project: Restricted Project. · View Herald Transcript

Updating D146370: [Clang][OpenMP]Solved the the always truth condition in Arm64

Reformatted the file
Reformatted the CGOpenMPRuntime.cpp to conform to clang standards

samuelmaina edited the summary of this revision. (Show Details)Mar 18 2023, 7:34 PM

The patch is currently impossible to read; please don't clang-format the whole file. There's a script clang-format-diff.py that can format just the parts of a file you change, if you need it.

As noted in the discussion on the bug report, needs a testcase.

samuelmaina edited the summary of this revision. (Show Details)

All the testcases are passing. The first unit tests I could find are for functions that are 6 levels higher from this function .The function is very low level and couldn't find a way to affect it from the higher functions.

jhuber6 accepted this revision.Mar 26 2023, 5:34 AM
This revision is now accepted and ready to land.Mar 26 2023, 5:34 AM

Thank you Samuel. Since you don't have commit access, I can commit this for you if you'd like.

This revision was automatically updated to reflect the committed changes.