Previously D113336 makes RISCVTargetInfo::initFeatureMap return the results
processed by RISCVISAInfo, which only consists of ISA features and misses
non-ISA features like relax and save-restore.
This patch fixes the problem.
Differential D119541
[RISCV] Fix RISCVTargetInfo::initFeatureMap, add non-ISA features back after implication eopXD on Feb 11 2022, 4:42 AM. Authored by
Details Previously D113336 makes RISCVTargetInfo::initFeatureMap return the results This patch fixes the problem.
Diff Detail
Event Timeline
Comment Actions I just noticed that target features (e.g. -mrelax) are broken in all LLVM 14 releases due to D113336 . This should have been cherry-picked back tot the release branch, but it's too late now. In the future please ensure that important fixes such as this one end up on the release branch as well. Comment Actions Thanks for flagging that this was missed - definitely a collective failure here for us to recognise this was fixing an important bug in a shipping release. We'll try harder to keep in mind the possibility of cherry-picking into point releases in the future. |