Closed germanium32 closed 1 year ago
I can see unnecessary tab or spaces in opt.cpp
.
I have a question for test case 2. What DEF:% .*
responsible for in this test?
Other things LGTM.
I can see unnecessary tab or spaces in
opt.cpp
. I have a question for test case 2. WhatDEF:% .*
responsible for in this test? Other things LGTM.
Ah, for the first comment, I will check and remove redundant tabs and spaces.
For the second comment, the [DEF:%.*] is the name tag for the default block of switch-case argument. If it caused confusion from the ambiguity of the abbreviation "def," I'll try to use more explicit names.
Clang-formatted files and moved testcases' directory!
Overview
Add SimplifyCFG pass, which canonicalizes the control flow graph of the given ll. The SimplifyCFGPass does several tasks, including:
Implementation
Include llvm/Transforms/Scalar/SimplifyCFG.h into the opt.cpp file, and add it to the FunctionAnalysisManager.
Unit tests (SimplifyCFG-Test#.ll)