-
Notifications
You must be signed in to change notification settings - Fork 14.1k
CodeGen: Port ExpandLargeDivRem to new pass manager #71022
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
d2dd5e1
to
312fb7d
Compare
@@ -445,6 +445,7 @@ FUNCTION_PASS("transform-warning", WarnMissedTransformationsPass()) | |||
FUNCTION_PASS("tsan", ThreadSanitizerPass()) | |||
FUNCTION_PASS("memprof", MemProfilerPass()) | |||
FUNCTION_PASS("declare-to-assign", llvm::AssignmentTrackingPass()) | |||
FUNCTION_PASS("expand-large-div-rem", ExpandLargeDivRemPass(TM)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to already exist without the constructor argument in MachinePassRegistry.def, not sure what's going on there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean?
$ ./build/rel/bin/opt -p expand-large-div-rem -S /dev/null
./build/rel/bin/opt: unknown pass name 'expand-large-div-rem'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean this exists:
FUNCTION_PASS("expand-large-div-rem", ExpandLargeDivRemPass, ()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks!
@@ -445,6 +445,7 @@ FUNCTION_PASS("transform-warning", WarnMissedTransformationsPass()) | |||
FUNCTION_PASS("tsan", ThreadSanitizerPass()) | |||
FUNCTION_PASS("memprof", MemProfilerPass()) | |||
FUNCTION_PASS("declare-to-assign", llvm::AssignmentTrackingPass()) | |||
FUNCTION_PASS("expand-large-div-rem", ExpandLargeDivRemPass(TM)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean?
$ ./build/rel/bin/opt -p expand-large-div-rem -S /dev/null
./build/rel/bin/opt: unknown pass name 'expand-large-div-rem'
No description provided.