PPCMIPeephole::emitRLDICWhenLoweringJumpTables should return a bool value to indicate optimization is conducted or not.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp | ||
---|---|---|
764 | It would be more safe to have it as "Simplified |= xxxx". |
Comment Actions
LGTM, with one minor comments. Maybe, you could commit a NFC patch to use "|=" instead of "=" to set the Simplified flag.
Comment Actions
Thanks @steven.zhang, I think using = rather than |= in line 764 might cause error. I have fixed it in https://reviews.llvm.org/D63806. Other updates of Simplified are all Simplified = true, no need to replace = with |=.
It would be more safe to have it as "Simplified |= xxxx".