mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-22 10:16:43 +00:00
Make SCEV print <nsw><nuw> for Add/MulExpr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145364 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d2b5e2dd44
commit
121d78f7e7
@ -188,6 +188,14 @@ void SCEV::print(raw_ostream &OS) const {
|
||||
OS << OpStr;
|
||||
}
|
||||
OS << ")";
|
||||
switch (NAry->getSCEVType()) {
|
||||
case scAddExpr:
|
||||
case scMulExpr:
|
||||
if (NAry->getNoWrapFlags(FlagNUW))
|
||||
OS << "<nuw>";
|
||||
if (NAry->getNoWrapFlags(FlagNSW))
|
||||
OS << "<nsw>";
|
||||
}
|
||||
return;
|
||||
}
|
||||
case scUDivExpr: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user